/WPFMediaKit/MediaFoundation/Interop/MFIdl.cs
http://github.com/fivesixty/StandaloneMB · C# · 4039 lines · 3158 code · 732 blank · 149 comment · 0 complexity · 4f947b2ec61b2ceec781a4da298fd813 MD5 · raw file
- using System;
- using System.Text;
- using System.Runtime.InteropServices;
- using System.Runtime.InteropServices.ComTypes;
- using WPFMediaKit.MediaFoundation.Interop.Misc;
- namespace WPFMediaKit.MediaFoundation.Interop
- {
- #region GUIDs, IIDs
- public sealed class MFAttributesClsid
- {
- // Audio Renderer Attributes
- public static readonly Guid MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ID = new Guid(0xb10aaec3, 0xef71, 0x4cc3, 0xb8, 0x73, 0x5, 0xa9, 0xa0, 0x8b, 0x9f, 0x8e);
- public static readonly Guid MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ROLE = new Guid(0x6ba644ff, 0x27c5, 0x4d02, 0x98, 0x87, 0xc2, 0x86, 0x19, 0xfd, 0xb9, 0x1b);
- public static readonly Guid MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS = new Guid(0xede4b5e0, 0xf805, 0x4d6c, 0x99, 0xb3, 0xdb, 0x01, 0xbf, 0x95, 0xdf, 0xab);
- public static readonly Guid MF_AUDIO_RENDERER_ATTRIBUTE_SESSION_ID = new Guid(0xede4b5e3, 0xf805, 0x4d6c, 0x99, 0xb3, 0xdb, 0x01, 0xbf, 0x95, 0xdf, 0xab);
- // Byte Stream Attributes
- public static readonly Guid MF_BYTESTREAM_ORIGIN_NAME = new Guid(0xfc358288, 0x3cb6, 0x460c, 0xa4, 0x24, 0xb6, 0x68, 0x12, 0x60, 0x37, 0x5a);
- public static readonly Guid MF_BYTESTREAM_CONTENT_TYPE = new Guid(0xfc358289, 0x3cb6, 0x460c, 0xa4, 0x24, 0xb6, 0x68, 0x12, 0x60, 0x37, 0x5a);
- public static readonly Guid MF_BYTESTREAM_DURATION = new Guid(0xfc35828a, 0x3cb6, 0x460c, 0xa4, 0x24, 0xb6, 0x68, 0x12, 0x60, 0x37, 0x5a);
- public static readonly Guid MF_BYTESTREAM_LAST_MODIFIED_TIME = new Guid(0xfc35828b, 0x3cb6, 0x460c, 0xa4, 0x24, 0xb6, 0x68, 0x12, 0x60, 0x37, 0x5a);
- // Enhanced Video Renderer Attributes
- public static readonly Guid MF_ACTIVATE_CUSTOM_VIDEO_MIXER_ACTIVATE = new Guid(0xba491361, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8);
- public static readonly Guid MF_ACTIVATE_CUSTOM_VIDEO_MIXER_CLSID = new Guid(0xba491360, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8);
- public static readonly Guid MF_ACTIVATE_CUSTOM_VIDEO_MIXER_FLAGS = new Guid(0xba491362, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8);
- public static readonly Guid MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_ACTIVATE = new Guid(0xba491365, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8);
- public static readonly Guid MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID = new Guid(0xba491364, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8);
- public static readonly Guid MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_FLAGS = new Guid(0xba491366, 0xbe50, 0x451e, 0x95, 0xab, 0x6d, 0x4a, 0xcc, 0xc7, 0xda, 0xd8);
- public static readonly Guid MF_ACTIVATE_VIDEO_WINDOW = new Guid(0x9a2dbbdd, 0xf57e, 0x4162, 0x82, 0xb9, 0x68, 0x31, 0x37, 0x76, 0x82, 0xd3);
- public static readonly Guid MF_SA_REQUIRED_SAMPLE_COUNT = new Guid(0x18802c61, 0x324b, 0x4952, 0xab, 0xd0, 0x17, 0x6f, 0xf5, 0xc6, 0x96, 0xff);
- public static readonly Guid VIDEO_ZOOM_RECT = new Guid(0x7aaa1638, 0x1b7f, 0x4c93, 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0);
- // Event Attributes
- // MF_EVENT_DO_THINNING {321EA6FB-DAD9-46e4-B31D-D2EAE7090E30}
- public static readonly Guid MF_EVENT_DO_THINNING = new Guid(0x321ea6fb, 0xdad9, 0x46e4, 0xb3, 0x1d, 0xd2, 0xea, 0xe7, 0x9, 0xe, 0x30);
- // MF_EVENT_OUTPUT_NODE {830f1a8b-c060-46dd-a801-1c95dec9b107}
- public static readonly Guid MF_EVENT_OUTPUT_NODE = new Guid(0x830f1a8b, 0xc060, 0x46dd, 0xa8, 0x01, 0x1c, 0x95, 0xde, 0xc9, 0xb1, 0x07);
- // MF_EVENT_PRESENTATION_TIME_OFFSET {5AD914D1-9B45-4a8d-A2C0-81D1E50BFB07}
- public static readonly Guid MF_EVENT_PRESENTATION_TIME_OFFSET = new Guid(0x5ad914d1, 0x9b45, 0x4a8d, 0xa2, 0xc0, 0x81, 0xd1, 0xe5, 0xb, 0xfb, 0x7);
- // MF_EVENT_SCRUBSAMPLE_TIME {9AC712B3-DCB8-44d5-8D0C-37455A2782E3}
- public static readonly Guid MF_EVENT_SCRUBSAMPLE_TIME = new Guid(0x9ac712b3, 0xdcb8, 0x44d5, 0x8d, 0xc, 0x37, 0x45, 0x5a, 0x27, 0x82, 0xe3);
- // MF_EVENT_SESSIONCAPS {7E5EBCD0-11B8-4abe-AFAD-10F6599A7F42}
- public static readonly Guid MF_EVENT_SESSIONCAPS = new Guid(0x7e5ebcd0, 0x11b8, 0x4abe, 0xaf, 0xad, 0x10, 0xf6, 0x59, 0x9a, 0x7f, 0x42);
- // MF_EVENT_SESSIONCAPS_DELTA {7E5EBCD1-11B8-4abe-AFAD-10F6599A7F42}
- // Type: UINT32
- public static readonly Guid MF_EVENT_SESSIONCAPS_DELTA = new Guid(0x7e5ebcd1, 0x11b8, 0x4abe, 0xaf, 0xad, 0x10, 0xf6, 0x59, 0x9a, 0x7f, 0x42);
- // MF_EVENT_SOURCE_ACTUAL_START {a8cc55a9-6b31-419f-845d-ffb351a2434b}
- public static readonly Guid MF_EVENT_SOURCE_ACTUAL_START = new Guid(0xa8cc55a9, 0x6b31, 0x419f, 0x84, 0x5d, 0xff, 0xb3, 0x51, 0xa2, 0x43, 0x4b);
- // MF_EVENT_SOURCE_CHARACTERISTICS {47DB8490-8B22-4f52-AFDA-9CE1B2D3CFA8}
- public static readonly Guid MF_EVENT_SOURCE_CHARACTERISTICS = new Guid(0x47db8490, 0x8b22, 0x4f52, 0xaf, 0xda, 0x9c, 0xe1, 0xb2, 0xd3, 0xcf, 0xa8);
- // MF_EVENT_SOURCE_CHARACTERISTICS_OLD {47DB8491-8B22-4f52-AFDA-9CE1B2D3CFA8}
- public static readonly Guid MF_EVENT_SOURCE_CHARACTERISTICS_OLD = new Guid(0x47db8491, 0x8b22, 0x4f52, 0xaf, 0xda, 0x9c, 0xe1, 0xb2, 0xd3, 0xcf, 0xa8);
- // MF_EVENT_SOURCE_FAKE_START {a8cc55a7-6b31-419f-845d-ffb351a2434b}
- public static readonly Guid MF_EVENT_SOURCE_FAKE_START = new Guid(0xa8cc55a7, 0x6b31, 0x419f, 0x84, 0x5d, 0xff, 0xb3, 0x51, 0xa2, 0x43, 0x4b);
- // MF_EVENT_SOURCE_PROJECTSTART {a8cc55a8-6b31-419f-845d-ffb351a2434b}
- public static readonly Guid MF_EVENT_SOURCE_PROJECTSTART = new Guid(0xa8cc55a8, 0x6b31, 0x419f, 0x84, 0x5d, 0xff, 0xb3, 0x51, 0xa2, 0x43, 0x4b);
- // MF_EVENT_SOURCE_TOPOLOGY_CANCELED {DB62F650-9A5E-4704-ACF3-563BC6A73364}
- public static readonly Guid MF_EVENT_SOURCE_TOPOLOGY_CANCELED = new Guid(0xdb62f650, 0x9a5e, 0x4704, 0xac, 0xf3, 0x56, 0x3b, 0xc6, 0xa7, 0x33, 0x64);
- // MF_EVENT_START_PRESENTATION_TIME {5AD914D0-9B45-4a8d-A2C0-81D1E50BFB07}
- public static readonly Guid MF_EVENT_START_PRESENTATION_TIME = new Guid(0x5ad914d0, 0x9b45, 0x4a8d, 0xa2, 0xc0, 0x81, 0xd1, 0xe5, 0xb, 0xfb, 0x7);
- // MF_EVENT_START_PRESENTATION_TIME_AT_OUTPUT {5AD914D2-9B45-4a8d-A2C0-81D1E50BFB07}
- public static readonly Guid MF_EVENT_START_PRESENTATION_TIME_AT_OUTPUT = new Guid(0x5ad914d2, 0x9b45, 0x4a8d, 0xa2, 0xc0, 0x81, 0xd1, 0xe5, 0xb, 0xfb, 0x7);
- // MF_EVENT_TOPOLOGY_STATUS {30C5018D-9A53-454b-AD9E-6D5F8FA7C43B}
- public static readonly Guid MF_EVENT_TOPOLOGY_STATUS = new Guid(0x30c5018d, 0x9a53, 0x454b, 0xad, 0x9e, 0x6d, 0x5f, 0x8f, 0xa7, 0xc4, 0x3b);
- public static readonly Guid MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME = new Guid(0x190e852f, 0x6238, 0x42d1, 0xb5, 0xaf, 0x69, 0xea, 0x33, 0x8e, 0xf8, 0x50);
- // Media Session Attributes
- public static readonly Guid MF_SESSION_CONTENT_PROTECTION_MANAGER = new Guid(0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x74);
- public static readonly Guid MF_SESSION_GLOBAL_TIME = new Guid(0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x72);
- public static readonly Guid MF_SESSION_QUALITY_MANAGER = new Guid(0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x73);
- public static readonly Guid MF_SESSION_REMOTE_SOURCE_MODE = new Guid(0xf4033ef4, 0x9bb3, 0x4378, 0x94, 0x1f, 0x85, 0xa0, 0x85, 0x6b, 0xc2, 0x44);
- public static readonly Guid MF_SESSION_SERVER_CONTEXT = new Guid(0xafe5b291, 0x50fa, 0x46e8, 0xb9, 0xbe, 0xc, 0xc, 0x3c, 0xe4, 0xb3, 0xa5);
- public static readonly Guid MF_SESSION_TOPOLOADER = new Guid(0x1e83d482, 0x1f1c, 0x4571, 0x84, 0x5, 0x88, 0xf4, 0xb2, 0x18, 0x1f, 0x71);
- // Media Type Attributes
- // {48eba18e-f8c9-4687-bf11-0a74c9f96a8f} MF_MT_MAJOR_TYPE {GUID}
- public static readonly Guid MF_MT_MAJOR_TYPE = new Guid(0x48eba18e, 0xf8c9, 0x4687, 0xbf, 0x11, 0x0a, 0x74, 0xc9, 0xf9, 0x6a, 0x8f);
- // {f7e34c9a-42e8-4714-b74b-cb29d72c35e5} MF_MT_SUBTYPE {GUID}
- public static readonly Guid MF_MT_SUBTYPE = new Guid(0xf7e34c9a, 0x42e8, 0x4714, 0xb7, 0x4b, 0xcb, 0x29, 0xd7, 0x2c, 0x35, 0xe5);
- // {c9173739-5e56-461c-b713-46fb995cb95f} MF_MT_ALL_SAMPLES_INDEPENDENT {UINT32 (BOOL)}
- public static readonly Guid MF_MT_ALL_SAMPLES_INDEPENDENT = new Guid(0xc9173739, 0x5e56, 0x461c, 0xb7, 0x13, 0x46, 0xfb, 0x99, 0x5c, 0xb9, 0x5f);
- // {b8ebefaf-b718-4e04-b0a9-116775e3321b} MF_MT_FIXED_SIZE_SAMPLES {UINT32 (BOOL)}
- public static readonly Guid MF_MT_FIXED_SIZE_SAMPLES = new Guid(0xb8ebefaf, 0xb718, 0x4e04, 0xb0, 0xa9, 0x11, 0x67, 0x75, 0xe3, 0x32, 0x1b);
- // {3afd0cee-18f2-4ba5-a110-8bea502e1f92} MF_MT_COMPRESSED {UINT32 (BOOL)}
- public static readonly Guid MF_MT_COMPRESSED = new Guid(0x3afd0cee, 0x18f2, 0x4ba5, 0xa1, 0x10, 0x8b, 0xea, 0x50, 0x2e, 0x1f, 0x92);
- // {dad3ab78-1990-408b-bce2-eba673dacc10} MF_MT_SAMPLE_SIZE {UINT32}
- public static readonly Guid MF_MT_SAMPLE_SIZE = new Guid(0xdad3ab78, 0x1990, 0x408b, 0xbc, 0xe2, 0xeb, 0xa6, 0x73, 0xda, 0xcc, 0x10);
- // 4d3f7b23-d02f-4e6c-9bee-e4bf2c6c695d MF_MT_WRAPPED_TYPE {Blob}
- public static readonly Guid MF_MT_WRAPPED_TYPE = new Guid(0x4d3f7b23, 0xd02f, 0x4e6c, 0x9b, 0xee, 0xe4, 0xbf, 0x2c, 0x6c, 0x69, 0x5d);
- // {37e48bf5-645e-4c5b-89de-ada9e29b696a} MF_MT_AUDIO_NUM_CHANNELS {UINT32}
- public static readonly Guid MF_MT_AUDIO_NUM_CHANNELS = new Guid(0x37e48bf5, 0x645e, 0x4c5b, 0x89, 0xde, 0xad, 0xa9, 0xe2, 0x9b, 0x69, 0x6a);
- // {5faeeae7-0290-4c31-9e8a-c534f68d9dba} MF_MT_AUDIO_SAMPLES_PER_SECOND {UINT32}
- public static readonly Guid MF_MT_AUDIO_SAMPLES_PER_SECOND = new Guid(0x5faeeae7, 0x0290, 0x4c31, 0x9e, 0x8a, 0xc5, 0x34, 0xf6, 0x8d, 0x9d, 0xba);
- // {fb3b724a-cfb5-4319-aefe-6e42b2406132} MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECOND {double}
- public static readonly Guid MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECOND = new Guid(0xfb3b724a, 0xcfb5, 0x4319, 0xae, 0xfe, 0x6e, 0x42, 0xb2, 0x40, 0x61, 0x32);
- // {1aab75c8-cfef-451c-ab95-ac034b8e1731} MF_MT_AUDIO_AVG_BYTES_PER_SECOND {UINT32}
- public static readonly Guid MF_MT_AUDIO_AVG_BYTES_PER_SECOND = new Guid(0x1aab75c8, 0xcfef, 0x451c, 0xab, 0x95, 0xac, 0x03, 0x4b, 0x8e, 0x17, 0x31);
- // {322de230-9eeb-43bd-ab7a-ff412251541d} MF_MT_AUDIO_BLOCK_ALIGNMENT {UINT32}
- public static readonly Guid MF_MT_AUDIO_BLOCK_ALIGNMENT = new Guid(0x322de230, 0x9eeb, 0x43bd, 0xab, 0x7a, 0xff, 0x41, 0x22, 0x51, 0x54, 0x1d);
- // {f2deb57f-40fa-4764-aa33-ed4f2d1ff669} MF_MT_AUDIO_BITS_PER_SAMPLE {UINT32}
- public static readonly Guid MF_MT_AUDIO_BITS_PER_SAMPLE = new Guid(0xf2deb57f, 0x40fa, 0x4764, 0xaa, 0x33, 0xed, 0x4f, 0x2d, 0x1f, 0xf6, 0x69);
- // {d9bf8d6a-9530-4b7c-9ddf-ff6fd58bbd06} MF_MT_AUDIO_VALID_BITS_PER_SAMPLE {UINT32}
- public static readonly Guid MF_MT_AUDIO_VALID_BITS_PER_SAMPLE = new Guid(0xd9bf8d6a, 0x9530, 0x4b7c, 0x9d, 0xdf, 0xff, 0x6f, 0xd5, 0x8b, 0xbd, 0x06);
- // {aab15aac-e13a-4995-9222-501ea15c6877} MF_MT_AUDIO_SAMPLES_PER_BLOCK {UINT32}
- public static readonly Guid MF_MT_AUDIO_SAMPLES_PER_BLOCK = new Guid(0xaab15aac, 0xe13a, 0x4995, 0x92, 0x22, 0x50, 0x1e, 0xa1, 0x5c, 0x68, 0x77);
- // {55fb5765-644a-4caf-8479-938983bb1588}` MF_MT_AUDIO_CHANNEL_MASK {UINT32}
- public static readonly Guid MF_MT_AUDIO_CHANNEL_MASK = new Guid(0x55fb5765, 0x644a, 0x4caf, 0x84, 0x79, 0x93, 0x89, 0x83, 0xbb, 0x15, 0x88);
- // {9d62927c-36be-4cf2-b5c4-a3926e3e8711}` MF_MT_AUDIO_FOLDDOWN_MATRIX {BLOB, MFFOLDDOWN_MATRIX}
- public static readonly Guid MF_MT_AUDIO_FOLDDOWN_MATRIX = new Guid(0x9d62927c, 0x36be, 0x4cf2, 0xb5, 0xc4, 0xa3, 0x92, 0x6e, 0x3e, 0x87, 0x11);
- // {0x9d62927d-36be-4cf2-b5c4-a3926e3e8711}` MF_MT_AUDIO_WMADRC_PEAKREF {UINT32}
- public static readonly Guid MF_MT_AUDIO_WMADRC_PEAKREF = new Guid(0x9d62927d, 0x36be, 0x4cf2, 0xb5, 0xc4, 0xa3, 0x92, 0x6e, 0x3e, 0x87, 0x11);
- // {0x9d62927e-36be-4cf2-b5c4-a3926e3e8711}` MF_MT_AUDIO_WMADRC_PEAKTARGET {UINT32}
- public static readonly Guid MF_MT_AUDIO_WMADRC_PEAKTARGET = new Guid(0x9d62927e, 0x36be, 0x4cf2, 0xb5, 0xc4, 0xa3, 0x92, 0x6e, 0x3e, 0x87, 0x11);
- // {0x9d62927f-36be-4cf2-b5c4-a3926e3e8711}` MF_MT_AUDIO_WMADRC_AVGREF {UINT32}
- public static readonly Guid MF_MT_AUDIO_WMADRC_AVGREF = new Guid(0x9d62927f, 0x36be, 0x4cf2, 0xb5, 0xc4, 0xa3, 0x92, 0x6e, 0x3e, 0x87, 0x11);
- // {0x9d629280-36be-4cf2-b5c4-a3926e3e8711}` MF_MT_AUDIO_WMADRC_AVGTARGET {UINT32}
- public static readonly Guid MF_MT_AUDIO_WMADRC_AVGTARGET = new Guid(0x9d629280, 0x36be, 0x4cf2, 0xb5, 0xc4, 0xa3, 0x92, 0x6e, 0x3e, 0x87, 0x11);
- // {a901aaba-e037-458a-bdf6-545be2074042} MF_MT_AUDIO_PREFER_WAVEFORMATEX {UINT32 (BOOL)}
- public static readonly Guid MF_MT_AUDIO_PREFER_WAVEFORMATEX = new Guid(0xa901aaba, 0xe037, 0x458a, 0xbd, 0xf6, 0x54, 0x5b, 0xe2, 0x07, 0x40, 0x42);
- // {1652c33d-d6b2-4012-b834-72030849a37d} MF_MT_FRAME_SIZE {UINT64 (HI32(Width),LO32(Height))}
- public static readonly Guid MF_MT_FRAME_SIZE = new Guid(0x1652c33d, 0xd6b2, 0x4012, 0xb8, 0x34, 0x72, 0x03, 0x08, 0x49, 0xa3, 0x7d);
- // {c459a2e8-3d2c-4e44-b132-fee5156c7bb0} MF_MT_FRAME_RATE {UINT64 (HI32(Numerator),LO32(Denominator))}
- public static readonly Guid MF_MT_FRAME_RATE = new Guid(0xc459a2e8, 0x3d2c, 0x4e44, 0xb1, 0x32, 0xfe, 0xe5, 0x15, 0x6c, 0x7b, 0xb0);
- // {c6376a1e-8d0a-4027-be45-6d9a0ad39bb6} MF_MT_PIXEL_ASPECT_RATIO {UINT64 (HI32(Numerator),LO32(Denominator))}
- public static readonly Guid MF_MT_PIXEL_ASPECT_RATIO = new Guid(0xc6376a1e, 0x8d0a, 0x4027, 0xbe, 0x45, 0x6d, 0x9a, 0x0a, 0xd3, 0x9b, 0xb6);
- // {8772f323-355a-4cc7-bb78-6d61a048ae82} MF_MT_DRM_FLAGS {UINT32 (anyof MFVideoDRMFlags)}
- public static readonly Guid MF_MT_DRM_FLAGS = new Guid(0x8772f323, 0x355a, 0x4cc7, 0xbb, 0x78, 0x6d, 0x61, 0xa0, 0x48, 0xae, 0x82);
- // {4d0e73e5-80ea-4354-a9d0-1176ceb028ea} MF_MT_PAD_CONTROL_FLAGS {UINT32 (oneof MFVideoPadFlags)}
- public static readonly Guid MF_MT_PAD_CONTROL_FLAGS = new Guid(0x4d0e73e5, 0x80ea, 0x4354, 0xa9, 0xd0, 0x11, 0x76, 0xce, 0xb0, 0x28, 0xea);
- // {68aca3cc-22d0-44e6-85f8-28167197fa38} MF_MT_SOURCE_CONTENT_HINT {UINT32 (oneof MFVideoSrcContentHintFlags)}
- public static readonly Guid MF_MT_SOURCE_CONTENT_HINT = new Guid(0x68aca3cc, 0x22d0, 0x44e6, 0x85, 0xf8, 0x28, 0x16, 0x71, 0x97, 0xfa, 0x38);
- // {65df2370-c773-4c33-aa64-843e068efb0c} MF_MT_CHROMA_SITING {UINT32 (anyof MFVideoChromaSubsampling)}
- public static readonly Guid MF_MT_VIDEO_CHROMA_SITING = new Guid(0x65df2370, 0xc773, 0x4c33, 0xaa, 0x64, 0x84, 0x3e, 0x06, 0x8e, 0xfb, 0x0c);
- // {e2724bb8-e676-4806-b4b2-a8d6efb44ccd} MF_MT_INTERLACE_MODE {UINT32 (oneof MFVideoInterlaceMode)}
- public static readonly Guid MF_MT_INTERLACE_MODE = new Guid(0xe2724bb8, 0xe676, 0x4806, 0xb4, 0xb2, 0xa8, 0xd6, 0xef, 0xb4, 0x4c, 0xcd);
- // {5fb0fce9-be5c-4935-a811-ec838f8eed93} MF_MT_TRANSFER_FUNCTION {UINT32 (oneof MFVideoTransferFunction)}
- public static readonly Guid MF_MT_TRANSFER_FUNCTION = new Guid(0x5fb0fce9, 0xbe5c, 0x4935, 0xa8, 0x11, 0xec, 0x83, 0x8f, 0x8e, 0xed, 0x93);
- // {dbfbe4d7-0740-4ee0-8192-850ab0e21935} MF_MT_VIDEO_PRIMARIES {UINT32 (oneof MFVideoPrimaries)}
- public static readonly Guid MF_MT_VIDEO_PRIMARIES = new Guid(0xdbfbe4d7, 0x0740, 0x4ee0, 0x81, 0x92, 0x85, 0x0a, 0xb0, 0xe2, 0x19, 0x35);
- // {47537213-8cfb-4722-aa34-fbc9e24d77b8} MF_MT_CUSTOM_VIDEO_PRIMARIES {BLOB (MT_CUSTOM_VIDEO_PRIMARIES)}
- public static readonly Guid MF_MT_CUSTOM_VIDEO_PRIMARIES = new Guid(0x47537213, 0x8cfb, 0x4722, 0xaa, 0x34, 0xfb, 0xc9, 0xe2, 0x4d, 0x77, 0xb8);
- // {3e23d450-2c75-4d25-a00e-b91670d12327} MF_MT_YUV_MATRIX {UINT32 (oneof MFVideoTransferMatrix)}
- public static readonly Guid MF_MT_YUV_MATRIX = new Guid(0x3e23d450, 0x2c75, 0x4d25, 0xa0, 0x0e, 0xb9, 0x16, 0x70, 0xd1, 0x23, 0x27);
- // {53a0529c-890b-4216-8bf9-599367ad6d20} MF_MT_VIDEO_LIGHTING {UINT32 (oneof MFVideoLighting)}
- public static readonly Guid MF_MT_VIDEO_LIGHTING = new Guid(0x53a0529c, 0x890b, 0x4216, 0x8b, 0xf9, 0x59, 0x93, 0x67, 0xad, 0x6d, 0x20);
- // {c21b8ee5-b956-4071-8daf-325edf5cab11} MF_MT_VIDEO_NOMINAL_RANGE {UINT32 (oneof MFNominalRange)}
- public static readonly Guid MF_MT_VIDEO_NOMINAL_RANGE = new Guid(0xc21b8ee5, 0xb956, 0x4071, 0x8d, 0xaf, 0x32, 0x5e, 0xdf, 0x5c, 0xab, 0x11);
- // {66758743-7e5f-400d-980a-aa8596c85696} MF_MT_GEOMETRIC_APERTURE {BLOB (MFVideoArea)}
- public static readonly Guid MF_MT_GEOMETRIC_APERTURE = new Guid(0x66758743, 0x7e5f, 0x400d, 0x98, 0x0a, 0xaa, 0x85, 0x96, 0xc8, 0x56, 0x96);
- // {d7388766-18fe-48c6-a177-ee894867c8c4} MF_MT_MINIMUM_DISPLAY_APERTURE {BLOB (MFVideoArea)}
- public static readonly Guid MF_MT_MINIMUM_DISPLAY_APERTURE = new Guid(0xd7388766, 0x18fe, 0x48c6, 0xa1, 0x77, 0xee, 0x89, 0x48, 0x67, 0xc8, 0xc4);
- // {79614dde-9187-48fb-b8c7-4d52689de649} MF_MT_PAN_SCAN_APERTURE {BLOB (MFVideoArea)}
- public static readonly Guid MF_MT_PAN_SCAN_APERTURE = new Guid(0x79614dde, 0x9187, 0x48fb, 0xb8, 0xc7, 0x4d, 0x52, 0x68, 0x9d, 0xe6, 0x49);
- // {4b7f6bc3-8b13-40b2-a993-abf630b8204e} MF_MT_PAN_SCAN_ENABLED {UINT32 (BOOL)}
- public static readonly Guid MF_MT_PAN_SCAN_ENABLED = new Guid(0x4b7f6bc3, 0x8b13, 0x40b2, 0xa9, 0x93, 0xab, 0xf6, 0x30, 0xb8, 0x20, 0x4e);
- // {20332624-fb0d-4d9e-bd0d-cbf6786c102e} MF_MT_AVG_BITRATE {UINT32}
- public static readonly Guid MF_MT_AVG_BITRATE = new Guid(0x20332624, 0xfb0d, 0x4d9e, 0xbd, 0x0d, 0xcb, 0xf6, 0x78, 0x6c, 0x10, 0x2e);
- // {799cabd6-3508-4db4-a3c7-569cd533deb1} MF_MT_AVG_BIT_ERROR_RATE {UINT32}
- public static readonly Guid MF_MT_AVG_BIT_ERROR_RATE = new Guid(0x799cabd6, 0x3508, 0x4db4, 0xa3, 0xc7, 0x56, 0x9c, 0xd5, 0x33, 0xde, 0xb1);
- // {c16eb52b-73a1-476f-8d62-839d6a020652} MF_MT_MAX_KEYFRAME_SPACING {UINT32}
- public static readonly Guid MF_MT_MAX_KEYFRAME_SPACING = new Guid(0xc16eb52b, 0x73a1, 0x476f, 0x8d, 0x62, 0x83, 0x9d, 0x6a, 0x02, 0x06, 0x52);
- // {644b4e48-1e02-4516-b0eb-c01ca9d49ac6} MF_MT_DEFAULT_STRIDE {UINT32 (INT32)} // in bytes
- public static readonly Guid MF_MT_DEFAULT_STRIDE = new Guid(0x644b4e48, 0x1e02, 0x4516, 0xb0, 0xeb, 0xc0, 0x1c, 0xa9, 0xd4, 0x9a, 0xc6);
- // {6d283f42-9846-4410-afd9-654d503b1a54} MF_MT_PALETTE {BLOB (array of MFPaletteEntry - usually 256)}
- public static readonly Guid MF_MT_PALETTE = new Guid(0x6d283f42, 0x9846, 0x4410, 0xaf, 0xd9, 0x65, 0x4d, 0x50, 0x3b, 0x1a, 0x54);
- // {b6bc765f-4c3b-40a4-bd51-2535b66fe09d} MF_MT_USER_DATA {BLOB}
- public static readonly Guid MF_MT_USER_DATA = new Guid(0xb6bc765f, 0x4c3b, 0x40a4, 0xbd, 0x51, 0x25, 0x35, 0xb6, 0x6f, 0xe0, 0x9d);
- // {73d1072d-1870-4174-a063-29ff4ff6c11e}
- public static readonly Guid MF_MT_AM_FORMAT_TYPE = new Guid(0x73d1072d, 0x1870, 0x4174, 0xa0, 0x63, 0x29, 0xff, 0x4f, 0xf6, 0xc1, 0x1e);
- // {91f67885-4333-4280-97cd-bd5a6c03a06e} MF_MT_MPEG_START_TIME_CODE {UINT32}
- public static readonly Guid MF_MT_MPEG_START_TIME_CODE = new Guid(0x91f67885, 0x4333, 0x4280, 0x97, 0xcd, 0xbd, 0x5a, 0x6c, 0x03, 0xa0, 0x6e);
- // {ad76a80b-2d5c-4e0b-b375-64e520137036} MF_MT_MPEG2_PROFILE {UINT32 (oneof AM_MPEG2Profile)}
- public static readonly Guid MF_MT_MPEG2_PROFILE = new Guid(0xad76a80b, 0x2d5c, 0x4e0b, 0xb3, 0x75, 0x64, 0xe5, 0x20, 0x13, 0x70, 0x36);
- // {96f66574-11c5-4015-8666-bff516436da7} MF_MT_MPEG2_LEVEL {UINT32 (oneof AM_MPEG2Level)}
- public static readonly Guid MF_MT_MPEG2_LEVEL = new Guid(0x96f66574, 0x11c5, 0x4015, 0x86, 0x66, 0xbf, 0xf5, 0x16, 0x43, 0x6d, 0xa7);
- // {31e3991d-f701-4b2f-b426-8ae3bda9e04b} MF_MT_MPEG2_FLAGS {UINT32 (anyof AMMPEG2_xxx flags)}
- public static readonly Guid MF_MT_MPEG2_FLAGS = new Guid(0x31e3991d, 0xf701, 0x4b2f, 0xb4, 0x26, 0x8a, 0xe3, 0xbd, 0xa9, 0xe0, 0x4b);
- // {3c036de7-3ad0-4c9e-9216-ee6d6ac21cb3} MF_MT_MPEG_SEQUENCE_HEADER {BLOB}
- public static readonly Guid MF_MT_MPEG_SEQUENCE_HEADER = new Guid(0x3c036de7, 0x3ad0, 0x4c9e, 0x92, 0x16, 0xee, 0x6d, 0x6a, 0xc2, 0x1c, 0xb3);
- // {84bd5d88-0fb8-4ac8-be4b-a8848bef98f3} MF_MT_DV_AAUX_SRC_PACK_0 {UINT32}
- public static readonly Guid MF_MT_DV_AAUX_SRC_PACK_0 = new Guid(0x84bd5d88, 0x0fb8, 0x4ac8, 0xbe, 0x4b, 0xa8, 0x84, 0x8b, 0xef, 0x98, 0xf3);
- // {f731004e-1dd1-4515-aabe-f0c06aa536ac} MF_MT_DV_AAUX_CTRL_PACK_0 {UINT32}
- public static readonly Guid MF_MT_DV_AAUX_CTRL_PACK_0 = new Guid(0xf731004e, 0x1dd1, 0x4515, 0xaa, 0xbe, 0xf0, 0xc0, 0x6a, 0xa5, 0x36, 0xac);
- // {720e6544-0225-4003-a651-0196563a958e} MF_MT_DV_AAUX_SRC_PACK_1 {UINT32}
- public static readonly Guid MF_MT_DV_AAUX_SRC_PACK_1 = new Guid(0x720e6544, 0x0225, 0x4003, 0xa6, 0x51, 0x01, 0x96, 0x56, 0x3a, 0x95, 0x8e);
- // {cd1f470d-1f04-4fe0-bfb9-d07ae0386ad8} MF_MT_DV_AAUX_CTRL_PACK_1 {UINT32}
- public static readonly Guid MF_MT_DV_AAUX_CTRL_PACK_1 = new Guid(0xcd1f470d, 0x1f04, 0x4fe0, 0xbf, 0xb9, 0xd0, 0x7a, 0xe0, 0x38, 0x6a, 0xd8);
- // {41402d9d-7b57-43c6-b129-2cb997f15009} MF_MT_DV_VAUX_SRC_PACK {UINT32}
- public static readonly Guid MF_MT_DV_VAUX_SRC_PACK = new Guid(0x41402d9d, 0x7b57, 0x43c6, 0xb1, 0x29, 0x2c, 0xb9, 0x97, 0xf1, 0x50, 0x09);
- // {2f84e1c4-0da1-4788-938e-0dfbfbb34b48} MF_MT_DV_VAUX_CTRL_PACK {UINT32}
- public static readonly Guid MF_MT_DV_VAUX_CTRL_PACK = new Guid(0x2f84e1c4, 0x0da1, 0x4788, 0x93, 0x8e, 0x0d, 0xfb, 0xfb, 0xb3, 0x4b, 0x48);
- // Sample Attributes
- // {941ce0a3-6ae3-4dda-9a08-a64298340617} MFSampleExtension_BottomFieldFirst
- public static readonly Guid MFSampleExtension_BottomFieldFirst = new Guid(0x941ce0a3, 0x6ae3, 0x4dda, 0x9a, 0x08, 0xa6, 0x42, 0x98, 0x34, 0x06, 0x17);
- // MFSampleExtension_CleanPoint {9cdf01d8-a0f0-43ba-b077-eaa06cbd728a}
- public static readonly Guid MFSampleExtension_CleanPoint = new Guid(0x9cdf01d8, 0xa0f0, 0x43ba, 0xb0, 0x77, 0xea, 0xa0, 0x6c, 0xbd, 0x72, 0x8a);
- // {6852465a-ae1c-4553-8e9b-c3420fcb1637} MFSampleExtension_DerivedFromTopField
- public static readonly Guid MFSampleExtension_DerivedFromTopField = new Guid(0x6852465a, 0xae1c, 0x4553, 0x8e, 0x9b, 0xc3, 0x42, 0x0f, 0xcb, 0x16, 0x37);
- // MFSampleExtension_Discontinuity {9cdf01d9-a0f0-43ba-b077-eaa06cbd728a}
- public static readonly Guid MFSampleExtension_Discontinuity = new Guid(0x9cdf01d9, 0xa0f0, 0x43ba, 0xb0, 0x77, 0xea, 0xa0, 0x6c, 0xbd, 0x72, 0x8a);
- // {b1d5830a-deb8-40e3-90fa-389943716461} MFSampleExtension_Interlaced
- public static readonly Guid MFSampleExtension_Interlaced = new Guid(0xb1d5830a, 0xdeb8, 0x40e3, 0x90, 0xfa, 0x38, 0x99, 0x43, 0x71, 0x64, 0x61);
- // {304d257c-7493-4fbd-b149-9228de8d9a99} MFSampleExtension_RepeatFirstField
- public static readonly Guid MFSampleExtension_RepeatFirstField = new Guid(0x304d257c, 0x7493, 0x4fbd, 0xb1, 0x49, 0x92, 0x28, 0xde, 0x8d, 0x9a, 0x99);
- // {9d85f816-658b-455a-bde0-9fa7e15ab8f9} MFSampleExtension_SingleField
- public static readonly Guid MFSampleExtension_SingleField = new Guid(0x9d85f816, 0x658b, 0x455a, 0xbd, 0xe0, 0x9f, 0xa7, 0xe1, 0x5a, 0xb8, 0xf9);
- // MFSampleExtension_Token {8294da66-f328-4805-b551-00deb4c57a61}
- public static readonly Guid MFSampleExtension_Token = new Guid(0x8294da66, 0xf328, 0x4805, 0xb5, 0x51, 0x00, 0xde, 0xb4, 0xc5, 0x7a, 0x61);
- // Sample Grabber Sink Attributes
- public static readonly Guid MF_SAMPLEGRABBERSINK_SAMPLE_TIME_OFFSET = new Guid(0x62e3d776, 0x8100, 0x4e03, 0xa6, 0xe8, 0xbd, 0x38, 0x57, 0xac, 0x9c, 0x47);
- // Stream descriptor Attributes
- public static readonly Guid MF_SD_LANGUAGE = new Guid(0xaf2180, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x3, 0x59, 0x3b, 0xc1, 0x21);
- public static readonly Guid MF_SD_PROTECTED = new Guid(0xaf2181, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x3, 0x59, 0x3b, 0xc1, 0x21);
- public static readonly Guid MF_SD_SAMI_LANGUAGE = new Guid(0x36fcb98a, 0x6cd0, 0x44cb, 0xac, 0xb9, 0xa8, 0xf5, 0x60, 0xd, 0xd0, 0xbb);
- // Topology Attributes
- public static readonly Guid MF_TOPOLOGY_NO_MARKIN_MARKOUT = new Guid(0x7ed3f804, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);
- public static readonly Guid MF_TOPOLOGY_PROJECTSTART = new Guid(0x7ed3f802, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);
- public static readonly Guid MF_TOPOLOGY_PROJECTSTOP = new Guid(0x7ed3f803, 0x86bb, 0x4b3f, 0xb7, 0xe4, 0x7c, 0xb4, 0x3a, 0xfd, 0x4b, 0x80);
- public static readonly Guid MF_TOPOLOGY_RESOLUTION_STATUS = new Guid(0x494bbcde, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- // Topology Node Attributes
- public static readonly Guid MF_TOPONODE_CONNECT_METHOD = new Guid(0x494bbcf1, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_D3DAWARE = new Guid(0x494bbced, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_DECODER = new Guid(0x494bbd02, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_DECRYPTOR = new Guid(0x494bbcfa, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_DISABLE_PREROLL = new Guid(0x14932f9e, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
- public static readonly Guid MF_TOPONODE_DISCARDABLE = new Guid(0x494bbcfb, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_DRAIN = new Guid(0x494bbce9, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_ERROR_MAJORTYPE = new Guid(0x494bbcfd, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_ERROR_SUBTYPE = new Guid(0x494bbcfe, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_ERRORCODE = new Guid(0x494bbcee, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_FLUSH = new Guid(0x494bbce8, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_LOCKED = new Guid(0x494bbcf7, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_MARKIN_HERE = new Guid(0x494bbd00, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_MARKOUT_HERE = new Guid(0x494bbd01, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_MEDIASTART = new Guid(0x835c58ea, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
- public static readonly Guid MF_TOPONODE_MEDIASTOP = new Guid(0x835c58eb, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
- public static readonly Guid MF_TOPONODE_NOSHUTDOWN_ON_REMOVE = new Guid(0x14932f9c, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
- public static readonly Guid MF_TOPONODE_PRESENTATION_DESCRIPTOR = new Guid(0x835c58ed, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
- public static readonly Guid MF_TOPONODE_PRIMARYOUTPUT = new Guid(0x6304ef99, 0x16b2, 0x4ebe, 0x9d, 0x67, 0xe4, 0xc5, 0x39, 0xb3, 0xa2, 0x59);
- public static readonly Guid MF_TOPONODE_RATELESS = new Guid(0x14932f9d, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
- public static readonly Guid MF_TOPONODE_SEQUENCE_ELEMENTID = new Guid(0x835c58ef, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
- public static readonly Guid MF_TOPONODE_SOURCE = new Guid(0x835c58ec, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
- public static readonly Guid MF_TOPONODE_STREAM_DESCRIPTOR = new Guid(0x835c58ee, 0xe075, 0x4bc7, 0xbc, 0xba, 0x4d, 0xe0, 0x00, 0xdf, 0x9a, 0xe6);
- public static readonly Guid MF_TOPONODE_STREAMID = new Guid(0x14932f9b, 0x9087, 0x4bb4, 0x84, 0x12, 0x51, 0x67, 0x14, 0x5c, 0xbe, 0x04);
- public static readonly Guid MF_TOPONODE_TRANSFORM_OBJECTID = new Guid(0x88dcc0c9, 0x293e, 0x4e8b, 0x9a, 0xeb, 0xa, 0xd6, 0x4c, 0xc0, 0x16, 0xb0);
- public static readonly Guid MF_TOPONODE_WORKQUEUE_ID = new Guid(0x494bbcf8, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_WORKQUEUE_MMCSS_CLASS = new Guid(0x494bbcf9, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- public static readonly Guid MF_TOPONODE_WORKQUEUE_MMCSS_TASKID = new Guid(0x494bbcff, 0xb031, 0x4e38, 0x97, 0xc4, 0xd5, 0x42, 0x2d, 0xd6, 0x18, 0xdc);
- // Transform Attributes
- public static readonly Guid MF_ACTIVATE_MFT_LOCKED = new Guid(0xc1f6093c, 0x7f65, 0x4fbd, 0x9e, 0x39, 0x5f, 0xae, 0xc3, 0xc4, 0xfb, 0xd7);
- public static readonly Guid MF_SA_D3D_AWARE = new Guid(0xeaa35c29, 0x775e, 0x488e, 0x9b, 0x61, 0xb3, 0x28, 0x3e, 0x49, 0x58, 0x3b);
- // {53476A11-3F13-49fb-AC42-EE2733C96741} MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE {UINT32 (BOOL)}
- public static readonly Guid MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE = new Guid(0x53476a11, 0x3f13, 0x49fb, 0xac, 0x42, 0xee, 0x27, 0x33, 0xc9, 0x67, 0x41);
- // Presentation Descriptor Attributes
- public static readonly Guid MF_PD_APP_CONTEXT = new Guid(0x6c990d32, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_DURATION = new Guid(0x6c990d33, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_LAST_MODIFIED_TIME = new Guid(0x6c990d38, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_MIME_TYPE = new Guid(0x6c990d37, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_PMPHOST_CONTEXT = new Guid(0x6c990d31, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_SAMI_STYLELIST = new Guid(0xe0b73c7f, 0x486d, 0x484e, 0x98, 0x72, 0x4d, 0xe5, 0x19, 0x2a, 0x7b, 0xf8);
- public static readonly Guid MF_PD_TOTAL_FILE_SIZE = new Guid(0x6c990d34, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_AUDIO_ENCODING_BITRATE = new Guid(0x6c990d35, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- public static readonly Guid MF_PD_VIDEO_ENCODING_BITRATE = new Guid(0x6c990d36, 0xbb8e, 0x477a, 0x85, 0x98, 0xd, 0x5d, 0x96, 0xfc, 0xd8, 0x8a);
- // wmcontainer.h Attributes
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_FILE_ID = new Guid(0x3de649b4, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_CREATION_TIME = new Guid(0x3de649b6, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_PACKETS = new Guid(0x3de649b7, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_PLAY_DURATION = new Guid(0x3de649b8, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_SEND_DURATION = new Guid(0x3de649b9, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_PREROLL = new Guid(0x3de649ba, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_FLAGS = new Guid(0x3de649bb, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_MIN_PACKET_SIZE = new Guid(0x3de649bc, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_MAX_PACKET_SIZE = new Guid(0x3de649bd, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_FILEPROPERTIES_MAX_BITRATE = new Guid(0x3de649be, 0xd76d, 0x4e66, 0x9e, 0xc9, 0x78, 0x12, 0xf, 0xb4, 0xc7, 0xe3);
- public static readonly Guid MF_PD_ASF_CONTENTENCRYPTION_TYPE = new Guid(0x8520fe3d, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);
- public static readonly Guid MF_PD_ASF_CONTENTENCRYPTION_KEYID = new Guid(0x8520fe3e, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);
- public static readonly Guid MF_PD_ASF_CONTENTENCRYPTION_SECRET_DATA = new Guid(0x8520fe3f, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);
- public static readonly Guid MF_PD_ASF_CONTENTENCRYPTION_LICENSE_URL = new Guid(0x8520fe40, 0x277e, 0x46ea, 0x99, 0xe4, 0xe3, 0xa, 0x86, 0xdb, 0x12, 0xbe);
- public static readonly Guid MF_PD_ASF_CONTENTENCRYPTIONEX_ENCRYPTION_DATA = new Guid(0x62508be5, 0xecdf, 0x4924, 0xa3, 0x59, 0x72, 0xba, 0xb3, 0x39, 0x7b, 0x9d);
- public static readonly Guid MF_PD_ASF_LANGLIST = new Guid(0xf23de43c, 0x9977, 0x460d, 0xa6, 0xec, 0x32, 0x93, 0x7f, 0x16, 0xf, 0x7d);
- public static readonly Guid MF_PD_ASF_MARKER = new Guid(0x5134330e, 0x83a6, 0x475e, 0xa9, 0xd5, 0x4f, 0xb8, 0x75, 0xfb, 0x2e, 0x31);
- public static readonly Guid MF_PD_ASF_SCRIPT = new Guid(0xe29cd0d7, 0xd602, 0x4923, 0xa7, 0xfe, 0x73, 0xfd, 0x97, 0xec, 0xc6, 0x50);
- public static readonly Guid MF_PD_ASF_CODECLIST = new Guid(0xe4bb3509, 0xc18d, 0x4df1, 0xbb, 0x99, 0x7a, 0x36, 0xb3, 0xcc, 0x41, 0x19);
- public static readonly Guid MF_PD_ASF_METADATA_IS_VBR = new Guid(0x5fc6947a, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);
- public static readonly Guid MF_PD_ASF_METADATA_V8_VBRPEAK = new Guid(0x5fc6947b, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);
- public static readonly Guid MF_PD_ASF_METADATA_V8_BUFFERAVERAGE = new Guid(0x5fc6947c, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);
- public static readonly Guid MF_PD_ASF_METADATA_LEAKY_BUCKET_PAIRS = new Guid(0x5fc6947d, 0xef60, 0x445d, 0xb4, 0x49, 0x44, 0x2e, 0xcc, 0x78, 0xb4, 0xc1);
- public static readonly Guid MF_PD_ASF_DATA_START_OFFSET = new Guid(0xe7d5b3e7, 0x1f29, 0x45d3, 0x88, 0x22, 0x3e, 0x78, 0xfa, 0xe2, 0x72, 0xed);
- public static readonly Guid MF_PD_ASF_DATA_LENGTH = new Guid(0xe7d5b3e8, 0x1f29, 0x45d3, 0x88, 0x22, 0x3e, 0x78, 0xfa, 0xe2, 0x72, 0xed);
- public static readonly Guid MF_SD_ASF_EXTSTRMPROP_LANGUAGE_ID_INDEX = new Guid(0x48f8a522, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);
- public static readonly Guid MF_SD_ASF_EXTSTRMPROP_AVG_DATA_BITRATE = new Guid(0x48f8a523, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);
- public static readonly Guid MF_SD_ASF_EXTSTRMPROP_AVG_BUFFERSIZE = new Guid(0x48f8a524, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);
- public static readonly Guid MF_SD_ASF_EXTSTRMPROP_MAX_DATA_BITRATE = new Guid(0x48f8a525, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);
- public static readonly Guid MF_SD_ASF_EXTSTRMPROP_MAX_BUFFERSIZE = new Guid(0x48f8a526, 0x305d, 0x422d, 0x85, 0x24, 0x25, 0x2, 0xdd, 0xa3, 0x36, 0x80);
- public static readonly Guid MF_SD_ASF_STREAMBITRATES_BITRATE = new Guid(0xa8e182ed, 0xafc8, 0x43d0, 0xb0, 0xd1, 0xf6, 0x5b, 0xad, 0x9d, 0xa5, 0x58);
- public static readonly Guid MF_SD_ASF_METADATA_DEVICE_CONFORMANCE_TEMPLATE = new Guid(0x245e929d, 0xc44e, 0x4f7e, 0xbb, 0x3c, 0x77, 0xd4, 0xdf, 0xd2, 0x7f, 0x8a);
- public static readonly Guid MF_PD_ASF_INFO_HAS_AUDIO = new Guid(0x80e62295, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);
- public static readonly Guid MF_PD_ASF_INFO_HAS_VIDEO = new Guid(0x80e62296, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);
- public static readonly Guid MF_PD_ASF_INFO_HAS_NON_AUDIO_VIDEO = new Guid(0x80e62297, 0x2296, 0x4a44, 0xb3, 0x1c, 0xd1, 0x3, 0xc6, 0xfe, 0xd2, 0x3c);
- public static readonly Guid MF_ASFSTREAMCONFIG_LEAKYBUCKET1 = new Guid(0xc69b5901, 0xea1a, 0x4c9b, 0xb6, 0x92, 0xe2, 0xa0, 0xd2, 0x9a, 0x8a, 0xdd);
- public static readonly Guid MF_ASFSTREAMCONFIG_LEAKYBUCKET2 = new Guid(0xc69b5902, 0xea1a, 0x4c9b, 0xb6, 0x92, 0xe2, 0xa0, 0xd2, 0x9a, 0x8a, 0xdd);
- }
- public sealed class MFConnector
- {
- public static readonly Guid MFCONNECTOR_AGP = new Guid(0xac3aef60, 0xce43, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_COMPONENT = new Guid(0x57cd596b, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_COMPOSITE = new Guid(0x57cd596a, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_D_JPN = new Guid(0x57cd5970, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_DISPLAYPORT_EMBEDDED = new Guid(0x57cd5973, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_DISPLAYPORT_EXTERNAL = new Guid(0x57cd5972, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_DVI = new Guid(0x57cd596c, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_HDMI = new Guid(0x57cd596d, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_LVDS = new Guid(0x57cd596e, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_PCI = new Guid(0xac3aef5d, 0xce43, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_PCI_Express = new Guid(0xac3aef5f, 0xce43, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_PCIX = new Guid(0xac3aef5e, 0xce43, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_SPDIF = new Guid(0xb94a712, 0xad3e, 0x4cee, 0x83, 0xce, 0xce, 0x32, 0xe3, 0xdb, 0x65, 0x22);
- public static readonly Guid MFCONNECTOR_SVIDEO = new Guid(0x57cd5969, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_UDI_EMBEDDED = new Guid(0x57cd5975, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_UDI_EXTERNAL = new Guid(0x57cd5974, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_UNKNOWN = new Guid(0xac3aef5c, 0xce43, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFCONNECTOR_VGA = new Guid(0x57cd5968, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- }
- public sealed class MFTransformCategory
- {
- // {d6c02d4b-6833-45b4-971a-05a4b04bab91} MFT_CATEGORY_VIDEO_DECODER
- public static readonly Guid MFT_CATEGORY_VIDEO_DECODER = new Guid(0xd6c02d4b, 0x6833, 0x45b4, 0x97, 0x1a, 0x05, 0xa4, 0xb0, 0x4b, 0xab, 0x91);
- // {f79eac7d-e545-4387-bdee-d647d7bde42a} MFT_CATEGORY_VIDEO_ENCODER
- public static readonly Guid MFT_CATEGORY_VIDEO_ENCODER = new Guid(0xf79eac7d, 0xe545, 0x4387, 0xbd, 0xee, 0xd6, 0x47, 0xd7, 0xbd, 0xe4, 0x2a);
- // {12e17c21-532c-4a6e-8a1c-40825a736397} MFT_CATEGORY_VIDEO_EFFECT
- public static readonly Guid MFT_CATEGORY_VIDEO_EFFECT = new Guid(0x12e17c21, 0x532c, 0x4a6e, 0x8a, 0x1c, 0x40, 0x82, 0x5a, 0x73, 0x63, 0x97);
- // {059c561e-05ae-4b61-b69d-55b61ee54a7b} MFT_CATEGORY_MULTIPLEXER
- public static readonly Guid MFT_CATEGORY_MULTIPLEXER = new Guid(0x059c561e, 0x05ae, 0x4b61, 0xb6, 0x9d, 0x55, 0xb6, 0x1e, 0xe5, 0x4a, 0x7b);
- // {a8700a7a-939b-44c5-99d7-76226b23b3f1} MFT_CATEGORY_DEMULTIPLEXER
- public static readonly Guid MFT_CATEGORY_DEMULTIPLEXER = new Guid(0xa8700a7a, 0x939b, 0x44c5, 0x99, 0xd7, 0x76, 0x22, 0x6b, 0x23, 0xb3, 0xf1);
- // {9ea73fb4-ef7a-4559-8d5d-719d8f0426c7} MFT_CATEGORY_AUDIO_DECODER
- public static readonly Guid MFT_CATEGORY_AUDIO_DECODER = new Guid(0x9ea73fb4, 0xef7a, 0x4559, 0x8d, 0x5d, 0x71, 0x9d, 0x8f, 0x04, 0x26, 0xc7);
- // {91c64bd0-f91e-4d8c-9276-db248279d975} MFT_CATEGORY_AUDIO_ENCODER
- public static readonly Guid MFT_CATEGORY_AUDIO_ENCODER = new Guid(0x91c64bd0, 0xf91e, 0x4d8c, 0x92, 0x76, 0xdb, 0x24, 0x82, 0x79, 0xd9, 0x75);
- // {11064c48-3648-4ed0-932e-05ce8ac811b7} MFT_CATEGORY_AUDIO_EFFECT
- public static readonly Guid MFT_CATEGORY_AUDIO_EFFECT = new Guid(0x11064c48, 0x3648, 0x4ed0, 0x93, 0x2e, 0x05, 0xce, 0x8a, 0xc8, 0x11, 0xb7);
- // {90175d57-b7ea-4901-aeb3-933a8747756f} MFT_CATEGORY_OTHER
- public static readonly Guid MFT_CATEGORY_OTHER = new Guid(0x90175d57, 0xb7ea, 0x4901, 0xae, 0xb3, 0x93, 0x3a, 0x87, 0x47, 0x75, 0x6f);
- }
- public sealed class MFEnabletype
- {
- public static readonly Guid MFENABLETYPE_MF_RebootRequired = new Guid(0x6d4d3d4b, 0x0ece, 0x4652, 0x8b, 0x3a, 0xf2, 0xd2, 0x42, 0x60, 0xd8, 0x87);
- public static readonly Guid MFENABLETYPE_MF_UpdateRevocationInformation = new Guid(0xe558b0b5, 0xb3c4, 0x44a0, 0x92, 0x4c, 0x50, 0xd1, 0x78, 0x93, 0x23, 0x85);
- public static readonly Guid MFENABLETYPE_MF_UpdateUntrustedComponent = new Guid(0x9879f3d6, 0xcee2, 0x48e6, 0xb5, 0x73, 0x97, 0x67, 0xab, 0x17, 0x2f, 0x16);
- public static readonly Guid MFENABLETYPE_WMDRMV1_LicenseAcquisition = new Guid(0x4ff6eeaf, 0xb43, 0x4797, 0x9b, 0x85, 0xab, 0xf3, 0x18, 0x15, 0xe7, 0xb0);
- public static readonly Guid MFENABLETYPE_WMDRMV7_Individualization = new Guid(0xacd2c84a, 0xb303, 0x4f65, 0xbc, 0x2c, 0x2c, 0x84, 0x8d, 0x1, 0xa9, 0x89);
- public static readonly Guid MFENABLETYPE_WMDRMV7_LicenseAcquisition = new Guid(0x3306df, 0x4a06, 0x4884, 0xa0, 0x97, 0xef, 0x6d, 0x22, 0xec, 0x84, 0xa3);
- }
- public sealed class MFRepresentation
- {
- /// <summary> AM_MEDIA_TYPE_REPRESENTATION </summary>
- public static readonly Guid AMMediaType = new Guid(0xe2e42ad2, 0x132c, 0x491e, 0xa2, 0x68, 0x3c, 0x7c, 0x2d, 0xca, 0x18, 0x1f);
- /// <summary> FORMAT_MFVideoFormat </summary>
- public static readonly Guid MFVideoFormat = new Guid(0xaed4ab2d, 0x7326, 0x43cb, 0x94, 0x64, 0xc8, 0x79, 0xca, 0xb9, 0xc4, 0x3d);
- /// <summary> FORMAT_VideoInfo </summary>
- public static readonly Guid VideoInfo = new Guid(0x05589f80, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a);
- /// <summary> FORMAT_VideoInfo2 </summary>
- public static readonly Guid VideoInfo2 = new Guid(0xf72a76A0, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba);
- }
- public sealed class MFProperties
- {
- // Media Foundation Properties
- public static readonly Guid MFNETSOURCE_ACCELERATEDSTREAMINGDURATION = new Guid(0x3cb1f277, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_AUTORECONNECTLIMIT = new Guid(0x3cb1f27a, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_AUTORECONNECTPROGRESS = new Guid(0x3cb1f282, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_BROWSERUSERAGENT = new Guid(0x3cb1f28b, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_BROWSERWEBPAGE = new Guid(0x3cb1f28c, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_BUFFERINGTIME = new Guid(0x3cb1f276, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_CACHEENABLED = new Guid(0x3cb1f279, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_CONNECTIONBANDWIDTH = new Guid(0x3cb1f278, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_CREDENTIAL_MANAGER = new Guid(0x3cb1f280, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_DRMNET_LICENSE_REPRESENTATION = new Guid(0x47eae1bd, 0xbdfe, 0x42e2, 0x82, 0xf3, 0x54, 0xa4, 0x8c, 0x17, 0x96, 0x2d);
- public static readonly Guid MFNETSOURCE_ENABLE_DOWNLOAD = new Guid(0x3cb1f29d, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_ENABLE_HTTP = new Guid(0x3cb1f299, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_ENABLE_RTSP = new Guid(0x3cb1f298, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_ENABLE_STREAMING = new Guid(0x3cb1f29c, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_ENABLE_TCP = new Guid(0x3cb1f295, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_ENABLE_UDP = new Guid(0x3cb1f294, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_HOSTEXE = new Guid(0x3cb1f28f, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_HOSTVERSION = new Guid(0x3cb1f291, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_LOGURL = new Guid(0x3cb1f293, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_MAXBUFFERTIMEMS = new Guid(0x408b24e6, 0x4038, 0x4401, 0xb5, 0xb2, 0xfe, 0x70, 0x1a, 0x9e, 0xbf, 0x10);
- public static readonly Guid MFNETSOURCE_MAXUDPACCELERATEDSTREAMINGDURATION = new Guid(0x4aab2879, 0xbbe1, 0x4994, 0x9f, 0xf0, 0x54, 0x95, 0xbd, 0x25, 0x1, 0x29);
- public static readonly Guid MFNETSOURCE_PLAYERID = new Guid(0x3cb1f28e, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PLAYERUSERAGENT = new Guid(0x3cb1f292, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PLAYERVERSION = new Guid(0x3cb1f28d, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PPBANDWIDTH = new Guid(0x3cb1f281, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROTOCOL = new Guid(0x3cb1f27d, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYBYPASSFORLOCAL = new Guid(0x3cb1f286, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYEXCEPTIONLIST = new Guid(0x3cb1f285, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYHOSTNAME = new Guid(0x3cb1f284, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYINFO = new Guid(0x3cb1f29b, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYLOCATORFACTORY = new Guid(0x3cb1f283, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYPORT = new Guid(0x3cb1f288, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYRERUNAUTODETECTION = new Guid(0x3cb1f289, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_PROXYSETTINGS = new Guid(0x3cb1f287, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_RESENDSENABLED = new Guid(0x3cb1f27b, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_STATISTICS = new Guid(0x3cb1f274, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_THINNINGENABLED = new Guid(0x3cb1f27c, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_TRANSPORT = new Guid(0x3cb1f27e, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFNETSOURCE_UDP_PORT_RANGE = new Guid(0x3cb1f29a, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MFPKEY_CATEGORY = new Guid(0xc57a84c0, 0x1a80, 0x40a3, 0x97, 0xb5, 0x92, 0x72, 0xa4, 0x3, 0xc8, 0xae); // , 0x02
- public static readonly Guid MFPKEY_CLSID = new Guid(0xc57a84c0, 0x1a80, 0x40a3, 0x97, 0xb5, 0x92, 0x72, 0xa4, 0x3, 0xc8, 0xae); // , 0x01
- public static readonly Guid MFPKEY_EXATTRIBUTE_SUPPORTED = new Guid(0x456fe843, 0x3c87, 0x40c0, 0x94, 0x9d, 0x14, 0x9, 0xc9, 0x7d, 0xab, 0x2c); // , 0x01
- public static readonly Guid MFPKEY_SourceOpenMonitor = new Guid(0x074d4637, 0xb5ae, 0x465d, 0xaf, 0x17, 0x1a, 0x53, 0x8d, 0x28, 0x59, 0xdd); // , 0x02
- }
- public sealed class MFServices
- {
- public static readonly Guid MF_METADATA_PROVIDER_SERVICE = new Guid(0xdb214084, 0x58a4, 0x4d2e, 0xb8, 0x4f, 0x6f, 0x75, 0x5b, 0x2f, 0x7a, 0xd);
- public static readonly Guid MF_PMP_SERVER_CONTEXT = new Guid(0x2f00c910, 0xd2cf, 0x4278, 0x8b, 0x6a, 0xd0, 0x77, 0xfa, 0xc3, 0xa2, 0x5f);
- public static readonly Guid MF_QUALITY_SERVICES = new Guid(0xb7e2be11, 0x2f96, 0x4640, 0xb5, 0x2c, 0x28, 0x23, 0x65, 0xbd, 0xf1, 0x6c);
- public static readonly Guid MF_RATE_CONTROL_SERVICE = new Guid(0x866fa297, 0xb802, 0x4bf8, 0x9d, 0xc9, 0x5e, 0x3b, 0x6a, 0x9f, 0x53, 0xc9);
- public static readonly Guid MF_REMOTE_PROXY = new Guid(0x2f00c90e, 0xd2cf, 0x4278, 0x8b, 0x6a, 0xd0, 0x77, 0xfa, 0xc3, 0xa2, 0x5f);
- public static readonly Guid MF_SAMI_SERVICE = new Guid(0x49a89ae7, 0xb4d9, 0x4ef2, 0xaa, 0x5c, 0xf6, 0x5a, 0x3e, 0x5, 0xae, 0x4e);
- public static readonly Guid MF_SOURCE_PRESENTATION_PROVIDER_SERVICE = new Guid(0xe002aadc, 0xf4af, 0x4ee5, 0x98, 0x47, 0x05, 0x3e, 0xdf, 0x84, 0x04, 0x26);
- public static readonly Guid MF_TOPONODE_ATTRIBUTE_EDITOR_SERVICE = new Guid(0x65656e1a, 0x077f, 0x4472, 0x83, 0xef, 0x31, 0x6f, 0x11, 0xd5, 0x08, 0x7a);
- public static readonly Guid MF_WORKQUEUE_SERVICES = new Guid(0x8e37d489, 0x41e0, 0x413a, 0x90, 0x68, 0x28, 0x7c, 0x88, 0x6d, 0x8d, 0xda);
- public static readonly Guid MFNET_SAVEJOB_SERVICE = new Guid(0xb85a587f, 0x3d02, 0x4e52, 0x95, 0x65, 0x55, 0xd3, 0xec, 0x1e, 0x7f, 0xf7);
- public static readonly Guid MFNETSOURCE_STATISTICS_SERVICE = new Guid(0x3cb1f275, 0x0505, 0x4c5d, 0xae, 0x71, 0x0a, 0x55, 0x63, 0x44, 0xef, 0xa1);
- public static readonly Guid MR_AUDIO_POLICY_SERVICE = new Guid(0x911fd737, 0x6775, 0x4ab0, 0xa6, 0x14, 0x29, 0x78, 0x62, 0xfd, 0xac, 0x88);
- public static readonly Guid MR_POLICY_VOLUME_SERVICE = new Guid(0x1abaa2ac, 0x9d3b, 0x47c6, 0xab, 0x48, 0xc5, 0x95, 0x6, 0xde, 0x78, 0x4d);
- public static readonly Guid MR_STREAM_VOLUME_SERVICE = new Guid(0xf8b5fa2f, 0x32ef, 0x46f5, 0xb1, 0x72, 0x13, 0x21, 0x21, 0x2f, 0xb2, 0xc4);
- public static readonly Guid MR_VIDEO_RENDER_SERVICE = new Guid(0x1092a86c, 0xab1a, 0x459a, 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff);
- public static readonly Guid MR_VIDEO_MIXER_SERVICE = new Guid(0x73cd2fc, 0x6cf4, 0x40b7, 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8);
- public static readonly Guid MR_VIDEO_ACCELERATION_SERVICE = new Guid(0xefef5175, 0x5c7d, 0x4ce2, 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54);
- public static readonly Guid MR_BUFFER_SERVICE = new Guid(0xa562248c, 0x9ac6, 0x4ffc, 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d);
- }
- public sealed class CLSID
- {
- // Unknown
- public static readonly Guid MFPKEY_MULTICHANNEL_CHANNEL_MASK = new Guid(0x58bdaf8c, 0x3224, 0x4692, 0x86, 0xd0, 0x44, 0xd6, 0x5c, 0x5b, 0xf8, 0x2b); // , 0x01
- public static readonly Guid MFCONNECTOR_SDI = new Guid(0x57cd5971, 0xce47, 0x11d9, 0x92, 0xdb, 0x00, 0x0b, 0xdb, 0x28, 0xff, 0x98);
- public static readonly Guid MFPROTECTION_ACP = new Guid(0xc3fd11c6, 0xf8b7, 0x4d20, 0xb0, 0x08, 0x1d, 0xb1, 0x7d, 0x61, 0xf2, 0xda);
- public static readonly Guid MFPROTECTION_CGMSA = new Guid(0xE57E69E9, 0x226B, 0x4d31, 0xB4, 0xE3, 0xD3, 0xDB, 0x00, 0x87, 0x36, 0xDD);
- public static readonly Guid MFPROTECTION_CONSTRICTAUDIO = new Guid(0xffc99b44, 0xdf48, 0x4e16, 0x8e, 0x66, 0x09, 0x68, 0x92, 0xc1, 0x57, 0x8a);
- public static readonly Guid MFPROTECTION_CONSTRICTVIDEO = new Guid(0x193370ce, 0xc5e4, 0x4c3a, 0x8a, 0x66, 0x69, 0x59, 0xb4, 0xda, 0x44, 0x42);
- public static readonly Guid MFPROTECTION_DISABLE = new Guid(0x8cc6d81b, 0xfec6, 0x4d8f, 0x96, 0x4b, 0xcf, 0xba, 0x0b, 0x0d, 0xad, 0x0d);
- public static readonly Guid MFPROTECTION_FFT = new Guid(0x462a56b2, 0x2866, 0x4bb6, 0x98, 0x0d, 0x6d, 0x8d, 0x9e, 0xdb, 0x1a, 0x8c);
- public static readonly Guid MFPROTECTION_HDCP = new Guid(0xAE7CC03D, 0xC828, 0x4021, 0xac, 0xb7, 0xd5, 0x78, 0xd2, 0x7a, 0xaf, 0x13);
- public static readonly Guid MFPROTECTION_TRUSTEDAUDIODRIVERS = new Guid(0x65bdf3d2, 0x0168, 0x4816, 0xa5, 0x33, 0x55, 0xd4, 0x7b, 0x02, 0x71, 0x01);
- public static readonly Guid MFPROTECTION_WMDRMOTA = new Guid(0xa267a6a1, 0x362e, 0x47d0, 0x88, 0x05, 0x46, 0x28, 0x59, 0x8a, 0x23, 0xe4);
- public static readonly Guid MFPROTECTIONATTRIBUTE_CONSTRICTVIDEO_IMAGESIZE = new Guid(0x8476fc, 0x4b58, 0x4d80, 0xa7, 0x90, 0xe7, 0x29, 0x76, 0x73, 0x16, 0x1d);
- public static readonly Guid MFPROTECTIONATTRIBUTE_HDCP_SRM = new Guid(0x6f302107, 0x3477, 0x4468, 0x8a, 0x8, 0xee, 0xf9, 0xdb, 0x10, 0xe2, 0xf);
- public static readonly Guid MFSampleExtension_DescrambleData = new Guid(0x43483be6, 0x4903, 0x4314, 0xb0, 0x32, 0x29, 0x51, 0x36, 0x59, 0x36, 0xfc);
- public static readonly Guid MFSampleExtension_SampleKeyID = new Guid(0x9ed713c8, 0x9b87, 0x4b26, 0x82, 0x97, 0xa9, 0x3b, 0x0c, 0x5a, 0x8a, 0xcc);
- public static readonly Guid MFSampleExtension_GenKeyFunc = new Guid(0x441ca1ee, 0x6b1f, 0x4501, 0x90, 0x3a, 0xde, 0x87, 0xdf, 0x42, 0xf6, 0xed);
- public static readonly Guid MFSampleExtension_GenKeyCtx = new Guid(0x188120cb, 0xd7da, 0x4b59, 0x9b, 0x3e, 0x92, 0x52, 0xfd, 0x37, 0x30, 0x1c);
- public static readonly Guid MFSampleExtension_PacketCrossOffsets = new Guid(0x2789671d, 0x389f, 0x40bb, 0x90, 0xd9, 0xc2, 0x82, 0xf7, 0x7f, 0x9a, 0xbd);
- public static readonly Guid MF_SampleProtectionSalt = new Guid(0x5403deee, 0xb9ee, 0x438f, 0xaa, 0x83, 0x38, 0x4, 0x99, 0x7e, 0x56, 0x9d);
- public static readonly Guid CLSID_MFSourceResolver = new Guid(0x90eab60f, 0xe43a, 0x4188, 0xbc, 0xc4, 0xe4, 0x7f, 0xdf, 0x04, 0x86, 0x8c);
- // EVR stuff
- public static readonly Guid CLSID_EnhancedVideoRenderer = new Guid(0xfa10746c, 0x9b63, 0x4b6c, 0xbc, 0x49, 0xfc, 0x30, 0xe, 0xa5, 0xf2, 0x56);
- public static readonly Guid CLSID_MFVideoMixer9 = new Guid(0xE474E05A, 0xAB65, 0x4f6a, 0x82, 0x7C, 0x21, 0x8B, 0x1B, 0xAA, 0xF3, 0x1F);
- public static readonly Guid CLSID_MFVideoPresenter9 = new Guid(0x98455561, 0x5136, 0x4d28, 0xab, 0x8, 0x4c, 0xee, 0x40, 0xea, 0x27, 0x81);
- public static readonly Guid CLSID_EVRTearlessWindowPresenter9 = new Guid(0xa0a7a57b, 0x59b2, 0x4919, 0xa6, 0x94, 0xad, 0xd0, 0xa5, 0x26, 0xc3, 0x73);
- // Generic
- public static readonly Guid MF_QUALITY_NOTIFY_PROCESSING_LATENCY = new Guid(0xf6b44af8, 0x604d, 0x46fe, 0xa9, 0x5d, 0x45, 0x47, 0x9b, 0x10, 0xc9, 0xbc);
- public static readonly Guid MF_QUALITY_NOTIFY_SAMPLE_LAG = new Guid(0x30d15206, 0xed2a, 0x4760, 0xbe, 0x17, 0xeb, 0x4a, 0x9f, 0x12, 0x29, 0x5c);
- public static readonly Guid MF_TIME_FORMAT_SEGMENT_OFFSET = new Guid(0xc8b8be77, 0x869c, 0x431d, 0x81, 0x2e, 0x16, 0x96, 0x93, 0xf6, 0x5a, 0x39);
- }
- public sealed class MFMediaType
- {
- /// <summary> From MFMediaType_Default </summary>
- public static readonly Guid Default = new Guid(0x81A412E6, 0x8103, 0x4B06, 0x85, 0x7F, 0x18, 0x62, 0x78, 0x10, 0x24, 0xAC);
- /// <summary> From MFMediaType_Audio </summary>
- public static readonly Guid Audio = new Guid(0x73647561, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
- /// <summary> From MFMediaType_Video </summary>
- public static readonly Guid Video = new Guid(0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71);
- /// <summary> From MFMediaType_Protected </summary>
- public static readonly Guid Protected = new Guid(0x7b4b6fe6, 0x9d04, 0x4494, 0xbe, 0x14, 0x7e, 0x0b, 0xd0, 0x76, 0xc8, 0xe4);
- /// <summary> From MFMediaType_SAMI </summary>
- public static readonly Guid SAMI = new Guid(0xe69669a0, 0x3dcd, 0x40cb, 0x9e, 0x2e, 0x37, 0x08, 0x38, 0x7c, 0x06, 0x16);
- /// <summary> From MFMediaType_Script </summary>
- public static readonly Guid Script = new Guid(0x72178C22, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);
- /// <summary> From MFMediaType_Image </summary>
- public static readonly Guid Image = new Guid(0x72178C23, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);
- /// <summary> From MFMediaType_HTML </summary>
- public static readonly Guid HTML = new Guid(0x72178C24, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);
- /// <summary> From MFMediaType_Binary </summary>
- public static readonly Guid Binary = new Guid(0x72178C25, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);
- /// <summary> From MFMediaType_FileTransfer </summary>
- public static readonly Guid FileTransfer = new Guid(0x72178C26, 0xE45B, 0x11D5, 0xBC, 0x2A, 0x00, 0xB0, 0xD0, 0xF3, 0xF4, 0xAB);
- public static readonly Guid Base = new Guid(0x00000000, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid PCM = new Guid(0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid Float = new Guid(0x0003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DTS = new Guid(0x0008, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid Dolby_AC3_SPDIF = new Guid(0x0092, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DRM = new Guid(0x0009, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMAudioV8 = new Guid(0x0161, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMAudioV9 = new Guid(0x0162, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMAudio_Lossless = new Guid(0x0163, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMASPDIF = new Guid(0x0164, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MSP1 = new Guid(0x000A, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MP3 = new Guid(0x0055, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MPEG = new Guid(0x0050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid RGB32 = new Guid(22, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid ARGB32 = new Guid(21, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid RGB24 = new Guid(20, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid RGB555 = new Guid(24, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid RGB565 = new Guid(23, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid AI44 = new Guid(new FourCC("AI44").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid AYUV = new Guid(new FourCC("AYUV").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid YUY2 = new Guid(new FourCC("YUY2").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid UYVY = new Guid(new FourCC("UYVY").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid NV11 = new Guid(new FourCC("NV11").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid NV12 = new Guid(new FourCC("NV12").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid YV12 = new Guid(new FourCC("YV12").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid IYUV = new Guid(new FourCC("IYUV").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid Y210 = new Guid(new FourCC("Y210").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid Y216 = new Guid(new FourCC("Y216").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid Y410 = new Guid(new FourCC("Y410").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid Y416 = new Guid(new FourCC("Y416").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid P210 = new Guid(new FourCC("P210").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid P216 = new Guid(new FourCC("P216").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid P010 = new Guid(new FourCC("P010").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid P016 = new Guid(new FourCC("P016").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid v210 = new Guid(new FourCC("v210").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid v410 = new Guid(new FourCC("v410").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MP43 = new Guid(new FourCC("MP43").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MP4S = new Guid(new FourCC("MP4S").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMV1 = new Guid(new FourCC("WMV1").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMV2 = new Guid(new FourCC("WMV2").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid WMV3 = new Guid(new FourCC("WMV3").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MSS1 = new Guid(new FourCC("MSS1").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MSS2 = new Guid(new FourCC("MSS2").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MPG1 = new Guid(new FourCC("MPG1").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DVSL = new Guid(new FourCC("dvsl").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DVSD = new Guid(new FourCC("dvsd").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DV25 = new Guid(new FourCC("dv25").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DV50 = new Guid(new FourCC("dv50").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid DVH1 = new Guid(new FourCC("dvh1").ToInt32(), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
- public static readonly Guid MPEG2 = new Guid(0xe06d8026, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea);
- }
- #endregion
- #region Declarations
- #if ALLOW_UNTESTED_INTERFACES
- [Flags, UnmanagedName("MFOUTPUTATTRIBUTE_ *")]
- public enum MFOutputAttribute
- {
- None = 0,
- Digital = 0x00000001,
- NonstandardImplementation = 0x00000002,
- Video = 0x00000004,
- Compressed = 0x00000008,
- Software = 0x00000010,
- Bus = 0x00000020,
- BusImplementation = 0x0000FF00
- }
- [Flags, UnmanagedName("MFNetAuthenticationFlags")]
- public enum MFNetAuthenticationFlags
- {
- None = 0,
- Proxy = 0x00000001,
- ClearText = 0x00000002,
- LoggedOnUser = 0x00000004
- }
- [Flags, UnmanagedName("MFNetCredentialOptions")]
- public enum MFNetCredentialOptions
- {
- None = 0,
- Save = 0x00000001,
- DontCache = 0x00000002,
- AllowClearText = 0x00000004,
- }
- [UnmanagedName("MFStandardVideoFormat")]
- public enum MFStandardVideoFormat
- {
- reserved = 0,
- NTSC = (reserved + 1),
- PAL = (NTSC + 1),
- DVD_NTSC = (PAL + 1),
- DVD_PAL = (DVD_NTSC + 1),
- DV_PAL = (DVD_PAL + 1),
- DV_NTSC = (DV_PAL + 1),
- ATSC_SD480i = (DV_NTSC + 1),
- ATSC_HD1080i = (ATSC_SD480i + 1),
- ATSC_HD720p = (ATSC_HD1080i + 1)
- }
- [UnmanagedName("MFNetCredentialRequirements")]
- public enum MFNetCredentialRequirements
- {
- None = 0,
- RequirePrompt = 0x00000001
- }
- [Flags, UnmanagedName("MFTIMER_FLAGS")]
- public enum MFTimeFlags
- {
- None = 0,
- Relative = 0x00000001
- }
- [UnmanagedName("MF_QUALITY_DROP_MODE")]
- public enum MFQualitydropMode
- {
- None,
- Mode1,
- Mode2,
- Mode3,
- Mode4,
- Mode5,
- NumDropModes
- }
- [UnmanagedName("MF_QUALITY_LEVEL")]
- public enum MFQualityLevel
- {
- Normal,
- NormalMinus1,
- NormalMinus2,
- NormalMinus3,
- NormalMinus4,
- NormalMinus5,
- NumQualityLevels
- }
- [UnmanagedName("MFNETSOURCE_PROTOCOL_TYPE")]
- public enum MFNetSourceProtocolType
- {
- Undefined,
- Http,
- Rtsp,
- File
- }
- [UnmanagedName("MFPolicyManagerAction")]
- public enum MFPolicyManagerAction
- {
- Copy = 2,
- Export = 3,
- Extract = 4,
- Last = 7,
- No = 0,
- Play = 1,
- Reserved1 = 5,
- Reserved2 = 6,
- Reserved3 = 7
- }
- [UnmanagedName("MFRATE_DIRECTION")]
- public enum MFRateDirection
- {
- Forward,
- Reverse
- }
- [UnmanagedName("MFSHUTDOWN_STATUS")]
- public enum MFShutdownStatus
- {
- Initiated,
- Completed
- }
- [StructLayout(LayoutKind.Sequential), UnmanagedName("MPEG2VIDEOINFO")]
- public struct Mpeg2VideoInfo
- {
- VideoInfoHeader2 hdr;
- int dwStartTimeCode; // ?? not used for DVD ??
- int cbSequenceHeader; // is 0 for DVD (no sequence header)
- int dwProfile; // use enum MPEG2Profile
- int dwLevel; // use enum MPEG2Level
- int dwFlags; // use AMMPEG2_* defines. Reject connection if undefined bits are not 0
- int[] dwSequenceHeader; // DWORD instead of Byte for alignment purposes
- // For MPEG-2, if a sequence_header is included, the sequence_extension
- // should also be included
- }
- [StructLayout(LayoutKind.Explicit, Pack = 8), UnmanagedName("unnamed internal struct")]
- public struct Unnamed1
- {
- [FieldOffset(0)]
- public double d;
- [FieldOffset(0)]
- public int u32;
- [FieldOffset(0)]
- public long u64;
- }
- [StructLayout(LayoutKind.Sequential, Pack = 4), UnmanagedName("MF_LEAKY_BUCKET_PAIR")]
- public struct MF_LeakyBucketPair
- {
- public int dwBitrate;
- public int msBufferWindow;
- }
- [StructLayout(LayoutKind.Sequential), UnmanagedName("MFBYTESTREAM_BUFFERING_PARAMS")]
- public struct MFByteStreamBufferingParams
- {
- public long cbTotalFileSize;
- public long cbPlayableDataSize;
- public IntPtr prgBuckets;
- public int cBuckets;
- public long qwNetBufferingTime;
- public long qwExtraBufferingTimeDuringSeek;
- public long qwPlayDuration;
- public float dRate;
- }
- [StructLayout(LayoutKind.Sequential, Pack = 4), UnmanagedName("MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS")]
- public struct MFInputTrustAuthorityAccessParams
- {
- public int dwSize;
- public int dwVer;
- public int cbSignatureOffset;
- public int cbSignatureSize;
- public int cbExtensionOffset;
- public int cbExtensionSize;
- public int cActions;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]
- public MFInputTrustAuthorityAction[] rgOutputActions;
- }
- [StructLayout(LayoutKind.Sequential), UnmanagedName("MFINPUTTRUSTAUTHORITY_ACTION")]
- public struct MFInputTrustAuthorityAction
- {
- public MFPolicyManagerAction Action;
- public IntPtr pbTicket;
- public int cbTicket;
- }
- [StructLayout(LayoutKind.Sequential), UnmanagedName("MFNetCredentialManagerGetParam")]
- public struct MFNetCredentialManagerGetParam
- {
- [MarshalAs(UnmanagedType.Error)]
- public int hrOp;
- public int fAllowLoggedOnUser;
- public int fClearTextPackage;
- [MarshalAs(UnmanagedType.LPWStr)]
- public string pszUrl;
- [MarshalAs(UnmanagedType.LPWStr)]
- public string pszSite;
- [MarshalAs(UnmanagedType.LPWStr)]
- public string pszRealm;
- [MarshalAs(UnmanagedType.LPWStr)]
- public string pszPackage;
- public int nRetries;
- }
- [StructLayout(LayoutKind.Sequential, Pack = 8), UnmanagedName("MFTOPONODE_ATTRIBUTE_UPDATE")]
- public struct MFTopoNodeAttributeUpdate
- {
- public long NodeId;
- public Guid guidAttributeKey;
- public MFAttributeType attrType;
- public Unnamed1 u1;
- }
- #endif
- [UnmanagedName("MFSTREAMSINK_MARKER_TYPE")]
- public enum MFStreamSinkMarkerType
- {
- Default,
- EndOfSegment,
- Tick,
- Event
- }
- [Flags, UnmanagedName("MFSequencerTopologyFlags")]
- public enum MFSequencerTopologyFlags
- {
- None = 0,
- Last = 0x00000001
- }
- [Flags, UnmanagedName("MFSESSION_GETFULLTOPOLOGY_FLAGS")]
- public enum MFSessionGetFullTopologyFlags
- {
- None = 0x0,
- Current = 0x1
- }
- [Flags, UnmanagedName("MFSESSIONCAP_* defines")]
- public enum MFSessionCapabilities
- {
- None = 0x00000000,
- Start = 0x00000001,
- Seek = 0x00000002,
- Pause = 0x00000004,
- RateForward = 0x00000010,
- RateReverse = 0x00000020
- }
- [Flags, UnmanagedName("MFSESSION_SETTOPOLOGY_FLAGS")]
- public enum MFSessionSetTopologyFlags
- {
- None = 0x0,
- Immediate = 0x1,
- NoResolution = 0x2
- }
- [UnmanagedName("MFWaveFormatExConvertFlags")]
- public enum MFWaveFormatExConvertFlags
- {
- Normal = 0,
- ForceExtensible = 1
- }
- [UnmanagedName("MF_OBJECT_TYPE")]
- public enum MFObjectType
- {
- MediaSource,
- ByteStream,
- Invalid
- }
- [Flags, UnmanagedName("unnamed enum")]
- public enum MFResolution
- {
- None = 0x0,
- MediaSource = 0x00000001,
- ByteStream = 0x00000002,
- ContentDoesNotHaveToMatchExtensionOrMimeType = 0x00000010,
- KeepByteStreamAliveOnFail = 0x00000020,
- Read = 0x00010000,
- Write = 0x00020000
- }
- [UnmanagedName("MF_TOPOSTATUS")]
- public enum MFTopoStatus
- {
- // MF_TOPOSTATUS_INVALID: Invalid value; will not be sent
- Invalid = 0,
- // READY: The topology has been put in place and is
- // ready to start. All GetService calls to the Media Session will use
- // this topology.
- Ready = 100,
- // STARTED_SOURCE: The Media Session has started to read
- // and process data from the Media Source(s) in this topology.
- StartedSource = 200,
- // SINK_SWITCHED: The Media Sinks in the pipeline have
- // switched from a previous topology to this topology.
- // Note that this status does not get sent for the first topology;
- // applications can assume that the sinks are playing the first
- // topology when they receive MESessionStarted.
- SinkSwitched = 300,
- // ENDED: Playback of this topology is complete.
- // Before deleting this topology, however, the application should wait
- // for either MESessionEnded or the STARTED_SOURCE status
- // on the next topology to ensure that the Media Session is no longer
- // using this topology.
- Ended = 400,
- }
- [UnmanagedName("MFSTARTUP_* defines")]
- public enum MFStartup
- {
- NoSocket = 0x1,
- Lite = 0x1,
- Full = 0
- }
- [UnmanagedName("MFCLOCK_STATE")]
- public enum MFClockState
- {
- Invalid,
- Running,
- Stopped,
- Paused
- }
- [Flags, UnmanagedName("MFCLOCK_CHARACTERISTICS_FLAGS")]
- public enum MFClockCharacteristicsFlags
- {
- None = 0,
- Frequency10Mhz = 0x2,
- AlwaysRunning = 0x4,
- IsSystemClock = 0x8
- }
- [UnmanagedName("MF_TOPOLOGY_TYPE")]
- public enum MFTopologyType
- {
- Max = -1,
- OutputNode = 0,
- SourcestreamNode = 1,
- TeeNode = 3,
- TransformNode = 2
- }
- [Flags, UnmanagedName("MFMEDIASOURCE_CHARACTERISTICS")]
- public enum MFMediaSourceCharacteristics
- {
- None = 0,
- IsLive = 0x1,
- CanSeek = 0x2,
- CanPause = 0x4,
- HasSlowSeek = 0x8
- }
- [Flags, UnmanagedName("MEDIASINK_ defines")]
- public enum MFMediaSinkCharacteristics
- {
- None = 0,
- FixedStreams = 0x00000001,
- CannotMatchClock = 0x00000002,
- Rateless = 0x00000004,
- ClockRequired = 0x00000008,
- CanPreroll = 0x00000010,
- RequireReferenceMediaType = 0x00000020
- }
- [UnmanagedName("MF_ATTRIBUTE_SERIALIZE_OPTIONS"), Flags]
- public enum MFAttributeSerializeOptions
- {
- None = 0,
- UnknownByRef = 0x00000001
- }
- [UnmanagedName("MF_FILE_ACCESSMODE")]
- public enum MFFileAccessMode
- {
- None = 0,
- Read = 1,
- Write = 2,
- ReadWrite = 3
- }
- [UnmanagedName("MF_FILE_OPENMODE")]
- public enum MFFileOpenMode
- {
- FailIfNotExist = 0,
- FailIfExist = 1,
- ResetIfExist = 2,
- AppendIfExist = 3,
- DeleteIfExist = 4
- }
- [Flags, UnmanagedName("MF_FILE_FLAGS")]
- public enum MFFileFlags
- {
- None = 0,
- NoBuffering = 0x1
- }
- [UnmanagedName("MF_URL_TRUST_STATUS")]
- public enum MFURLTrustStatus
- {
- Untrusted,
- Trusted,
- Tampered
- }
- [Flags, UnmanagedName("MFPMPSESSION_CREATION_FLAGS")]
- public enum MFPMPSessionCreationFlags
- {
- None = 0,
- UnprotectedProcess = 0x1
- }
- [Flags, UnmanagedName("MFCLOCK_RELATIONAL_FLAGS")]
- public enum MFClockRelationalFlags
- {
- None = 0,
- JitterNeverAhead = 0x1
- }
- [StructLayout(LayoutKind.Sequential, Pack = 1), UnmanagedName("MFAYUVSample")]
- public struct MFAYUVSample
- {
- public byte bCrValue;
- public byte bCbValue;
- public byte bYValue;
- public byte bSampleAlpha8;
- }
- [StructLayout(LayoutKind.Sequential, Pack = 1), UnmanagedName("MFARGB")]
- public struct MFARGB
- {
- public byte rgbBlue;
- public byte rgbGreen;
- public byte rgbRed;
- public byte rgbAlpha;
- }
- [StructLayout(LayoutKind.Explicit, Pack = 1), UnmanagedName("MFPaletteEntry")]
- public struct MFPaletteEntry
- {
- [FieldOffset(0)]
- public MFARGB ARGB;
- [FieldOffset(0)]
- public MFAYUVSample AYCbCr;
- }
- [StructLayout(LayoutKind.Sequential, Pack = 8), UnmanagedName("MFCLOCK_PROPERTIES")]
- public struct MFClockProperties
- {
- public long qwCorrelationRate;
- public Guid guidClockId;
- public MFClockRelationalFlags dwClockFlags;
- public long qwClockFrequency;
- public int dwClockTolerance;
- public int dwClockJitter;
- }
- #endregion
- #region Interfaces
- #if ALLOW_UNTESTED_INTERFACES
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("86CBC910-E533-4751-8E3B-F19B5B806A03"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFVideoSampleAllocator
- {
- void SetDirectXManager(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pManager
- );
- void UninitializeSampleAllocator();
- void InitializeSampleAllocator(
- [In] int cRequestedFrames,
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pMediaType
- );
- void AllocateSample(
- [MarshalAs(UnmanagedType.Interface)] out IMFSample ppSample
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("A0638C2B-6465-4395-9AE7-A321A9FD2856")]
- public interface IMFAudioPolicy
- {
- void SetGroupingParam(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid rguidClass
- );
- void GetGroupingParam(
- out Guid pguidClass
- );
- void SetDisplayName(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszName
- );
- void GetDisplayName(
- [MarshalAs(UnmanagedType.LPWStr)] out string pszName
- );
- void SetIconPath(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszPath
- );
- void GetIconPath(
- [MarshalAs(UnmanagedType.LPWStr)] out string pszPath
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("76B1BBDB-4EC8-4F36-B106-70A9316DF593")]
- public interface IMFAudioStreamVolume
- {
- void GetChannelCount(
- out int pdwCount
- );
- void SetChannelVolume(
- [In] int dwIndex,
- [In] float fLevel
- );
- void GetChannelVolume(
- [In] int dwIndex,
- out float pfLevel
- );
- void SetAllVolumes(
- [In] int dwCount,
- [In] ref float pfVolumes
- );
- void GetAllVolumes(
- [In] int dwCount,
- out float pfVolumes
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("6D66D782-1D4F-4DB7-8C63-CB8C77F1EF5E"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFByteStreamBuffering
- {
- void SetBufferingParams(
- [In] ref MFByteStreamBufferingParams pParams
- );
- void EnableBuffering(
- [In] int fEnable
- );
- void StopBuffering();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("D19F8E98-B126-4446-890C-5DCB7AD71453"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFInputTrustAuthority
- {
- void GetDecrypter(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppv
- );
- void RequestAccess(
- [In] MFPolicyManagerAction Action,
- [MarshalAs(UnmanagedType.Interface)] out IMFActivate ppContentEnablerActivate
- );
- void GetPolicy(
- [In] MFPolicyManagerAction Action,
- [MarshalAs(UnmanagedType.Interface)] out IMFOutputPolicy ppPolicy
- );
- void BindAccess(
- [In] ref MFInputTrustAuthorityAccessParams pParam
- );
- void UpdateAccess(
- [In] ref MFInputTrustAuthorityAccessParams pParam
- );
- void Reset();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("5DFD4B2A-7674-4110-A4E6-8A68FD5F3688"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMediaSinkPreroll
- {
- void NotifyPreroll(
- [In] long hnsUpcomingStartTime
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("0E1D600A-C9F3-442D-8C51-A42D2D49452F"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMediaSourcePresentationProvider
- {
- void ForceEndOfPresentation(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationDescriptor pPresentationDescriptor
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("F88CFB8C-EF16-4991-B450-CB8C69E51704"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMetadata
- {
- void SetLanguage(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszRFC1766
- );
- void GetLanguage(
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszRFC1766
- );
- void GetAllLanguages(
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant ppvLanguages
- );
- void SetProperty(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszName,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant ppvValue
- );
- void GetProperty(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszName,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant ppvValue
- );
- void DeleteProperty(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszName
- );
- void GetAllPropertyNames(
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant ppvNames
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("56181D2D-E221-4ADB-B1C8-3CEE6A53F76F"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMetadataProvider
- {
- void GetMFMetadata(
- [In, MarshalAs(UnmanagedType.Interface)]
- IMFPresentationDescriptor pPresentationDescriptor,
- [In] int dwStreamIdentifier,
- [In] int dwFlags, // must be zero
- [MarshalAs(UnmanagedType.Interface)] out IMFMetadata ppMFMetadata
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("5B87EF6A-7ED8-434F-BA0E-184FAC1628D1")]
- public interface IMFNetCredential
- {
- void SetUser(
- [In] ref byte pbData,
- [In] int cbData,
- [In] int fDataIsEncrypted
- );
- void SetPassword(
- [In] ref byte pbData,
- [In] int cbData,
- [In] int fDataIsEncrypted
- );
- void GetUser(
- out byte pbData,
- [In, Out] ref int pcbData,
- [In] int fEncryptData
- );
- void GetPassword(
- out byte pbData,
- [In, Out] ref int pcbData,
- [In, MarshalAs(UnmanagedType.Bool)] bool fEncryptData
- );
- void LoggedOnUser(
- [MarshalAs(UnmanagedType.Bool)] out bool pfLoggedOnUser
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("5B87EF6C-7ED8-434F-BA0E-184FAC1628D1")]
- public interface IMFNetCredentialCache
- {
- void GetCredential(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszUrl,
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszRealm,
- [In] MFNetAuthenticationFlags dwAuthenticationFlags,
- [MarshalAs(UnmanagedType.Interface)] out IMFNetCredential ppCred,
- out MFNetCredentialRequirements pdwRequirementsFlags
- );
- void SetGood(
- [In, MarshalAs(UnmanagedType.Interface)] IMFNetCredential pCred,
- [In] bool fGood
- );
- void SetUserOptions(
- [In, MarshalAs(UnmanagedType.Interface)] IMFNetCredential pCred,
- [In] MFNetCredentialOptions dwOptionsFlags
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("5B87EF6B-7ED8-434F-BA0E-184FAC1628D1"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFNetCredentialManager
- {
- void BeginGetCredentials(
- [In] ref MFNetCredentialManagerGetParam pParam,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pState
- );
- void EndGetCredentials(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncResult pResult,
- [MarshalAs(UnmanagedType.Interface)] out IMFNetCredential ppCred
- );
- void SetGood(
- [In, MarshalAs(UnmanagedType.Interface)] IMFNetCredential pCred,
- [In] bool fGood
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("E9CD0383-A268-4BB4-82DE-658D53574D41")]
- public interface IMFNetProxyLocator
- {
- void FindFirstProxy(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszHost,
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszUrl,
- [In, MarshalAs(UnmanagedType.Bool)] bool fReserved
- );
- void FindNextProxy();
- void RegisterProxyResult(
- [In, MarshalAs(UnmanagedType.Error)] int hrOp
- );
- void GetCurrentProxy(
- [Out, MarshalAs(UnmanagedType.LPWStr)] string pszStr,
- [In, Out] ref int pcchStr
- );
- void Clone(
- [MarshalAs(UnmanagedType.Interface)] out IMFNetProxyLocator ppProxyLocator
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("E9CD0384-A268-4BB4-82DE-658D53574D41"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFNetProxyLocatorFactory
- {
- void CreateProxyLocator(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pszProtocol,
- [MarshalAs(UnmanagedType.Interface)] out IMFNetProxyLocator ppProxyLocator
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("7BE19E73-C9BF-468A-AC5A-A5E8653BEC87")]
- public interface IMFNetSchemeHandlerConfig
- {
- void GetNumberOfSupportedProtocols(
- out int pcProtocols
- );
- void GetSupportedProtocolType(
- [In] int nProtocolIndex,
- out MFNetSourceProtocolType pnProtocolType
- );
- void ResetProtocolRolloverSettings();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("09EF5BE3-C8A7-469E-8B70-73BF25BB193F"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFObjectReferenceStream
- {
- void SaveReference(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnk
- );
- void LoadReference(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppv
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("7F00F10A-DAED-41AF-AB26-5FDFA4DFBA3C"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFOutputPolicy : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void GenerateRequiredSchemas(
- [In] MFOutputAttribute dwAttributes,
- [In, MarshalAs(UnmanagedType.Struct)] Guid guidOutputSubType,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid rgGuidProtectionSchemasSupported,
- [In] int cProtectionSchemasSupported,
- [MarshalAs(UnmanagedType.Interface)] out IMFCollection ppRequiredProtectionSchemas
- );
- void GetOriginatorID(
- out Guid pguidOriginatorID
- );
- void GetMinimumGRLVersion(
- out int pdwMinimumGRLVersion
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("7BE0FC5B-ABD9-44FB-A5C8-F50136E71599")]
- public interface IMFOutputSchema : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void GetSchemaType(
- out Guid pguidSchemaType
- );
- void GetConfigurationData(
- out int pdwVal
- );
- void GetOriginatorID(
- out Guid pguidOriginatorID
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("D19F8E94-B126-4446-890C-5DCB7AD71453"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFOutputTrustAuthority
- {
- void GetAction(
- out MFPolicyManagerAction pAction
- );
- void SetPolicy(
- [In, MarshalAs(UnmanagedType.Interface)] ref IMFOutputPolicy ppPolicy,
- [In] int nPolicy,
- [Out] IntPtr ppbTicket,
- out int pcbTicket
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("6C4E655D-EAD8-4421-B6B9-54DCDBBDF820")]
- public interface IMFPMPClient
- {
- void SetPMPHost(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPMPHost pPMPHost
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("F70CA1A9-FDC7-4782-B994-ADFFB1C98606"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFPMPHost
- {
- void LockProcess();
- void UnlockProcess();
- void CreateObjectByCLSID(
- [MarshalAs(UnmanagedType.LPStruct)] Guid clsid,
- IStream pStream,
- [MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] object ppv
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("994E23AF-1CC2-493C-B9FA-46F1CB040FA4")]
- public interface IMFPMPServer
- {
- void LockProcess();
- void UnlockProcess();
- void CreateObjectByCLSID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid clsid,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppObject
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("EC15E2E9-E36B-4F7C-8758-77D452EF4CE7")]
- public interface IMFQualityAdvise
- {
- void SetDropMode(
- [In] MFQualitydropMode eDropMode
- );
- void SetQualityLevel(
- [In] MFQualityLevel eQualityLevel
- );
- void GetDropMode(
- out MFQualitydropMode peDropMode
- );
- void GetQualityLevel(
- out MFQualityLevel peQualityLevel
- );
- void DropTime(
- [In] long hnsAmountToDrop
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("8D009D86-5B9F-4115-B1FC-9F80D52AB8AB")]
- public interface IMFQualityManager
- {
- void NotifyTopology(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pTopology
- );
- void NotifyPresentationClock(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationClock pClock
- );
- void NotifyProcessInput(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopologyNode pNode,
- [In] int lInputIndex,
- [In, MarshalAs(UnmanagedType.Interface)] IMFSample pSample
- );
- void NotifyProcessOutput(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopologyNode pNode,
- [In] int lOutputIndex,
- [In, MarshalAs(UnmanagedType.Interface)] IMFSample pSample
- );
- void NotifyQualityEvent(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pObject,
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaEvent pEvent
- );
- void Shutdown();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("88DDCD21-03C3-4275-91ED-55EE3929328F"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFRateControl
- {
- void SetRate(
- [In, MarshalAs(UnmanagedType.Bool)] bool fThin,
- [In] float flRate
- );
- void GetRate(
- [In, Out, MarshalAs(UnmanagedType.Bool)] ref bool pfThin,
- [In, Out] ref float pflRate
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("0A9CCDBC-D797-4563-9667-94EC5D79292D"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFRateSupport
- {
- void GetSlowestRate(
- [In] MFRateDirection eDirection,
- [In, MarshalAs(UnmanagedType.Bool)] bool fThin,
- out float pflRate
- );
- void GetFastestRate(
- [In] MFRateDirection eDirection,
- [In, MarshalAs(UnmanagedType.Bool)] bool fThin,
- out float pflRate
- );
- void IsRateSupported(
- [In, MarshalAs(UnmanagedType.Bool)] bool fThin,
- [In] float flRate,
- [In, Out] ref float pflNearestSupportedRate
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("2347D60B-3FB5-480C-8803-8DF3ADCD3EF0")]
- public interface IMFRealTimeClient
- {
- void RegisterThreads(
- [In] int dwTaskIndex,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszClass
- );
- void UnregisterThreads();
- void SetWorkQueue(
- [In] int dwWorkQueueId
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("1CDE6309-CAE0-4940-907E-C1EC9C3D1D4A"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFRemoteDesktopPlugin
- {
- void UpdateTopology(
- [In, Out, MarshalAs(UnmanagedType.Interface)] IMFTopology pTopology
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("994E23AD-1CC2-493C-B9FA-46F1CB040FA4")]
- public interface IMFRemoteProxy
- {
- void GetRemoteObject(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppv
- );
- void GetRemoteHost(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppv
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("A7E025DD-5303-4A62-89D6-E747E1EFAC73"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFSAMIStyle
- {
- void GetStyleCount(
- out int pdwCount
- );
- void GetStyles(
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pPropVarStyleArray
- );
- void SetSelectedStyle(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszStyle
- );
- void GetSelectedStyle(
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszStyle
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("8C7B80BF-EE42-4B59-B1DF-55668E1BDCA8")]
- public interface IMFSampleGrabberSinkCallback : IMFClockStateSink
- {
- #region IMFClockStateSink methods
- new void OnClockStart(
- [In] long hnsSystemTime,
- [In] long llClockStartOffset
- );
- new void OnClockStop(
- [In] long hnsSystemTime
- );
- new void OnClockPause(
- [In] long hnsSystemTime
- );
- new void OnClockRestart(
- [In] long hnsSystemTime
- );
- new void OnClockSetRate(
- [In] long hnsSystemTime,
- [In] float flRate
- );
- #endregion
- void OnSetPresentationClock(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationClock pPresentationClock
- );
- void OnProcessSample(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidMajorMediaType,
- [In] int dwSampleFlags, // must be zero
- [In] long llSampleTime,
- [In] long llSampleDuration,
- [In] ref byte pSampleBuffer,
- [In] int dwSampleSize
- );
- void OnShutdown();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("8E36395F-C7B9-43C4-A54D-512B4AF63C95")]
- public interface IMFSampleProtection
- {
- void GetInputProtectionVersion(
- out int pdwVersion
- );
- void GetOutputProtectionVersion(
- out int pdwVersion
- );
- void GetProtectionCertificate(
- [In] int dwVersion,
- [Out] IntPtr ppCert,
- out int pcbCert
- );
- void InitOutputProtection(
- [In] int dwVersion,
- [In] int dwOutputId,
- [In] ref byte pbCert,
- [In] int cbCert,
- [Out] IntPtr ppbSeed,
- out int pcbSeed
- );
- void InitInputProtection(
- [In] int dwVersion,
- [In] int dwInputId,
- [In] ref byte pbSeed,
- [In] int cbSeed
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("E9931663-80BF-4C6E-98AF-5DCF58747D1F")]
- public interface IMFSaveJob
- {
- void BeginSave(
- [In, MarshalAs(UnmanagedType.Interface)] IMFByteStream pStream,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pState
- );
- void EndSave(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncResult pResult
- );
- void CancelSave();
- void GetProgress(
- out int pdwPercentComplete
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("6D4C7B74-52A0-4BB7-B0DB-55F29F47A668")]
- public interface IMFSchemeHandler
- {
- void BeginCreateObject(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszURL,
- [In] MFResolution dwFlags,
- [In, MarshalAs(UnmanagedType.Interface)] IPropertyStore pProps,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppIUnknownCancelCookie,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnkState
- );
- void EndCreateObject(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncResult pResult,
- out MFObjectType pObjectType,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppObject
- );
- void CancelObjectCreation(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pIUnknownCancelCookie
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("D0AE555D-3B12-4D97-B060-0990BC5AEB67"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFSecureChannel
- {
- void GetCertificate(
- [Out] IntPtr ppCert,
- out int pcbCert
- );
- void SetupSession(
- [In] ref byte pbEncryptedSessionKey,
- [In] int cbSessionKey
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("97EC2EA4-0E42-4937-97AC-9D6D328824E1"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFShutdown
- {
- void Shutdown();
- void GetShutdownStatus(
- out MFShutdownStatus pStatus
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("089EDF13-CF71-4338-8D13-9E569DBDC319"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFSimpleAudioVolume
- {
- void SetMasterVolume(
- [In] float fLevel
- );
- void GetMasterVolume(
- out float pfLevel
- );
- void SetMute(
- [In, MarshalAs(UnmanagedType.Bool)] bool bMute
- );
- void GetMute(
- [MarshalAs(UnmanagedType.Bool)] out bool pbMute
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("059054B3-027C-494C-A27D-9113291CF87F"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFSourceOpenMonitor
- {
- void OnSourceEvent(
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaEvent pEvent
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("E56E4CBD-8F70-49D8-A0F8-EDB3D6AB9BF2"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFTimer
- {
- void SetTimer(
- [In] MFTimeFlags dwFlags,
- [In] long llClockTime,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnkState,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppunkKey
- );
- void CancelTimer(
- [In, MarshalAs(UnmanagedType.IUnknown)] object punkKey
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("DE9A6157-F660-4643-B56A-DF9F7998C7CD")]
- public interface IMFTopoLoader
- {
- void Load(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pInputTopo,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopology ppOutputTopo,
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pCurrentTopo
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("676AA6DD-238A-410D-BB99-65668D01605A"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFTopologyNodeAttributeEditor
- {
- void UpdateNodeAttributes(
- [In] long TopoId,
- [In] int cUpdates,
- [In] ref MFTopoNodeAttributeUpdate pUpdates
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("542612C4-A1B8-4632-B521-DE11EA64A0B0")]
- public interface IMFTrustedInput
- {
- void GetInputTrustAuthority(
- [In] int dwStreamID,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppunkObject
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("D19F8E95-B126-4446-890C-5DCB7AD71453"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFTrustedOutput
- {
- void GetOutputTrustAuthorityCount(
- out int pcOutputTrustAuthorities
- );
- void GetOutputTrustAuthorityByIndex(
- [In] int dwIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFOutputTrustAuthority ppauthority
- );
- void IsFinal(
- [MarshalAs(UnmanagedType.Bool)] out bool pfIsFinal
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("35FE1BB8-A3A9-40FE-BBEC-EB569C9CCCA3"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFWorkQueueServices
- {
- void BeginRegisterTopologyWorkQueuesWithMMCSS(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [MarshalAs(UnmanagedType.IUnknown)] object pState
- );
- void EndRegisterTopologyWorkQueuesWithMMCSS(
- IMFAsyncResult pResult
- );
- void BeginUnregisterTopologyWorkQueuesWithMMCSS(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [MarshalAs(UnmanagedType.IUnknown)] object pState
- );
- void EndUnregisterTopologyWorkQueuesWithMMCSS(
- IMFAsyncResult pResult
- );
- void GetTopologyWorkQueueMMCSSClass(
- [In] int dwTopologyWorkQueueId,
- [Out, MarshalAs(UnmanagedType.LPWStr)] string pwszClass,
- [In, Out] ref int pcchClass
- );
- void GetTopologyWorkQueueMMCSSTaskId(
- [In] int dwTopologyWorkQueueId,
- out int pdwTaskId
- );
- void BeginRegisterPlatformWorkQueueWithMMCSS(
- [In] int dwPlatformWorkQueue,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszClass,
- [In] int dwTaskId,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [MarshalAs(UnmanagedType.IUnknown)] object pState
- );
- void EndRegisterPlatformWorkQueueWithMMCSS(
- IMFAsyncResult pResult,
- out int pdwTaskId
- );
- void BeginUnregisterPlatformWorkQueueWithMMCSS(
- [In] int dwPlatformWorkQueue,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [MarshalAs(UnmanagedType.IUnknown)] object pState
- );
- void EndUnregisterPlatformWorkQueueWithMMCSS(
- IMFAsyncResult pResult
- );
- void GetPlaftormWorkQueueMMCSSClass(
- [In] int dwPlatformWorkQueueId,
- [Out, MarshalAs(UnmanagedType.LPWStr)] string pwszClass,
- [In, Out] ref int pcchClass);
- void GetPlatformWorkQueueMMCSSTaskId(
- [In] int dwPlatformWorkQueueId,
- out int pdwTaskId
- );
- }
- #endif
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("279A808D-AEC7-40C8-9C6B-A6B492C78A66")]
- public interface IMFMediaSource : IMFMediaEventGenerator
- {
- #region IMFMediaEventGenerator methods
- new void GetEvent(
- [In] MFEventFlag dwFlags,
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaEvent ppEvent
- );
- new void BeginGetEvent(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object o
- );
- new void EndGetEvent(
- IMFAsyncResult pResult,
- out IMFMediaEvent ppEvent
- );
- new void QueueEvent(
- [In] MediaEventType met,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidExtendedType,
- [In] int hrStatus,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvValue
- );
- #endregion
- void GetCharacteristics(
- out MFMediaSourceCharacteristics pdwCharacteristics
- );
- void CreatePresentationDescriptor(
- out IMFPresentationDescriptor ppPresentationDescriptor
- );
- void Start(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationDescriptor pPresentationDescriptor,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid pguidTimeFormat,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvarStartPosition
- );
- void Stop();
- void Pause();
- void Shutdown();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("03CB2711-24D7-4DB6-A17F-F3A7A479A536"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFPresentationDescriptor : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void GetStreamDescriptorCount(
- out int pdwDescriptorCount
- );
- void GetStreamDescriptorByIndex(
- [In] int dwIndex,
- [MarshalAs(UnmanagedType.Bool)] out bool pfSelected,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamDescriptor ppDescriptor
- );
- void SelectStream(
- [In] int dwDescriptorIndex
- );
- void DeselectStream(
- [In] int dwDescriptorIndex
- );
- void Clone(
- [MarshalAs(UnmanagedType.Interface)] out IMFPresentationDescriptor ppPresentationDescriptor
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("56C03D9C-9DBB-45F5-AB4B-D80F47C05938"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFStreamDescriptor : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void GetStreamIdentifier(
- out int pdwStreamIdentifier
- );
- void GetMediaTypeHandler(
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaTypeHandler ppMediaTypeHandler
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("E93DCF6C-4B07-4E1E-8123-AA16ED6EADF5"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMediaTypeHandler
- {
- void IsMediaTypeSupported(
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pMediaType,
- IntPtr ppMediaType //[MarshalAs(UnmanagedType.Interface)] out IMFMediaType ppMediaType
- );
- void GetMediaTypeCount(
- out int pdwTypeCount
- );
- void GetMediaTypeByIndex(
- [In] int dwIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaType ppType
- );
- void SetCurrentMediaType(
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pMediaType
- );
- void GetCurrentMediaType(
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaType ppMediaType
- );
- void GetMajorType(
- out Guid pguidMajorType
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("83CF873A-F6DA-4BC8-823F-BACFD55DC433")]
- public interface IMFTopology : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void GetTopologyID(
- out long pID
- );
- void AddNode(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopologyNode pNode
- );
- void RemoveNode(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopologyNode pNode
- );
- void GetNodeCount(
- out short pwNodes
- );
- void GetNode(
- [In] short wIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopologyNode ppNode
- );
- void Clear();
- void CloneFrom(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pTopology
- );
- void GetNodeByID(
- [In] long qwTopoNodeID,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopologyNode ppNode
- );
- void GetSourceNodeCollection(
- [MarshalAs(UnmanagedType.Interface)] out IMFCollection ppCollection
- );
- void GetOutputNodeCollection(
- [MarshalAs(UnmanagedType.Interface)] out IMFCollection ppCollection
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("83CF873A-F6DA-4BC8-823F-BACFD55DC430"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFTopologyNode : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void SetObject(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pObject
- );
- void GetObject(
- [MarshalAs(UnmanagedType.IUnknown)] out object ppObject
- );
- void GetNodeType(
- out MFTopologyType pType
- );
- void GetTopoNodeID(
- out long pID
- );
- void SetTopoNodeID(
- [In] long ullTopoID
- );
- void GetInputCount(
- out int pcInputs
- );
- void GetOutputCount(
- out int pcOutputs
- );
- void ConnectOutput(
- [In] int dwOutputIndex,
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopologyNode pDownstreamNode,
- [In] int dwInputIndexOnDownstreamNode
- );
- void DisconnectOutput(
- [In] int dwOutputIndex
- );
- void GetInput(
- [In] int dwInputIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopologyNode ppUpstreamNode,
- out int pdwOutputIndexOnUpstreamNode
- );
- void GetOutput(
- [In] int dwOutputIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopologyNode ppDownstreamNode,
- out int pdwInputIndexOnDownstreamNode
- );
- void SetOutputPrefType(
- [In] int dwOutputIndex,
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pType
- );
- void GetOutputPrefType(
- [In] int dwOutputIndex,
- out IMFMediaType ppType
- );
- void SetInputPrefType(
- [In] int dwInputIndex,
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pType
- );
- void GetInputPrefType(
- [In] int dwInputIndex,
- out IMFMediaType ppType
- );
- void CloneFrom(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopologyNode pNode
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("90377834-21D0-4DEE-8214-BA2E3E6C1127"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMediaSession : IMFMediaEventGenerator
- {
- #region IMFMediaEventGenerator methods
- new void GetEvent(
- [In] MFEventFlag dwFlags,
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaEvent ppEvent
- );
- new void BeginGetEvent(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object o);
- new void EndGetEvent(
- IMFAsyncResult pResult,
- out IMFMediaEvent ppEvent);
- new void QueueEvent(
- [In] MediaEventType met,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidExtendedType,
- [In] int hrStatus,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvValue
- );
- #endregion
- void SetTopology(
- [In] MFSessionSetTopologyFlags dwSetTopologyFlags,
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pTopology
- );
- void ClearTopologies();
- void Start(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid pguidTimeFormat,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvarStartPosition
- );
- void Pause();
- void Stop();
- void Close();
- void Shutdown();
- void GetClock(
- [MarshalAs(UnmanagedType.Interface)] out IMFClock ppClock
- );
- void GetSessionCapabilities(
- out MFSessionCapabilities pdwCaps
- );
- void GetFullTopology(
- [In] MFSessionGetFullTopologyFlags dwGetFullTopologyFlags,
- [In] long TopoId,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopology ppFullTopology
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("D182108F-4EC6-443F-AA42-A71106EC825F")]
- public interface IMFMediaStream : IMFMediaEventGenerator
- {
- #region IMFMediaEventGenerator methods
- new void GetEvent(
- [In] MFEventFlag dwFlags,
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaEvent ppEvent
- );
- new void BeginGetEvent(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object o
- );
- new void EndGetEvent(
- IMFAsyncResult pResult,
- out IMFMediaEvent ppEvent);
- new void QueueEvent(
- [In] MediaEventType met,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidExtendedType,
- [In] int hrStatus,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvValue
- );
- #endregion
- void GetMediaSource(
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaSource ppMediaSource
- );
- void GetStreamDescriptor(
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamDescriptor ppStreamDescriptor
- );
- void RequestSample(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pToken
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("FBE5A32D-A497-4B61-BB85-97B1A848A6E3"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFSourceResolver
- {
- void CreateObjectFromURL(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszURL,
- [In] MFResolution dwFlags,
- IPropertyStore pProps,
- out MFObjectType pObjectType,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppObject
- );
- void CreateObjectFromByteStream(
- [In, MarshalAs(UnmanagedType.Interface)] IMFByteStream pByteStream,
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszURL,
- [In] MFResolution dwFlags,
- [In, MarshalAs(UnmanagedType.Interface)] IPropertyStore pProps,
- out MFObjectType pObjectType,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppObject
- );
- void BeginCreateObjectFromURL(
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszURL,
- MFResolution dwFlags,
- IPropertyStore pProps,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppIUnknownCancelCookie,
- IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object punkState
- );
- void EndCreateObjectFromURL(
- IMFAsyncResult pResult,
- out MFObjectType pObjectType,
- [MarshalAs(UnmanagedType.Interface)] out object ppObject
- );
- void BeginCreateObjectFromByteStream(
- [In, MarshalAs(UnmanagedType.Interface)] IMFByteStream pByteStream,
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszURL,
- [In] MFResolution dwFlags,
- IPropertyStore pProps,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppIUnknownCancelCookie,
- IMFAsyncCallback pCallback,
- [MarshalAs(UnmanagedType.IUnknown)] object punkState
- );
- void EndCreateObjectFromByteStream(
- IMFAsyncResult pResult,
- out MFObjectType pObjectType,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppObject
- );
- void CancelObjectCreation(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pIUnknownCancelCookie
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("7FEE9E9A-4A89-47A6-899C-B6A53A70FB67"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFActivate : IMFAttributes
- {
- #region IMFAttributes methods
- new void GetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void GetItemType(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out MFAttributeType pType
- );
- new void CompareItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void Compare(
- [MarshalAs(UnmanagedType.Interface)] IMFAttributes pTheirs,
- MFAttributesMatchType MatchType,
- [MarshalAs(UnmanagedType.Bool)] out bool pbResult
- );
- new void GetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int punValue
- );
- new void GetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out long punValue
- );
- new void GetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out double pfValue
- );
- new void GetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out Guid pguidValue
- );
- new void GetStringLength(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcchLength
- );
- new void GetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder pwszValue,
- int cchBufSize,
- out int pcchLength
- );
- new void GetAllocatedString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszValue,
- out int pcchLength
- );
- new void GetBlobSize(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out int pcbBlobSize
- );
- new void GetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [Out, MarshalAs(UnmanagedType.LPArray)] byte[] pBuf,
- int cbBufSize,
- out int pcbBlobSize
- );
- // Use GetBlob instead of this
- new void GetAllocatedBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- out IntPtr ip, // Read w/Marshal.Copy, Free w/Marshal.FreeCoTaskMem
- out int pcbSize
- );
- new void GetUnknown(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppv
- );
- new void SetItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant Value
- );
- new void DeleteItem(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey
- );
- new void DeleteAllItems();
- new void SetUINT32(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- int unValue
- );
- new void SetUINT64(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- long unValue
- );
- new void SetDouble(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- double fValue
- );
- new void SetGUID(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidValue
- );
- new void SetString(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPWStr)] string wszValue
- );
- new void SetBlob(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2)] byte[] pBuf,
- int cbBufSize
- );
- new void SetUnknown(
- [MarshalAs(UnmanagedType.LPStruct)] Guid guidKey,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnknown
- );
- new void LockStore();
- new void UnlockStore();
- new void GetCount(
- out int pcItems
- );
- new void GetItemByIndex(
- int unIndex,
- out Guid pguidKey,
- [In, Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(PVMarshaler))] PropVariant pValue
- );
- new void CopyAllItems(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAttributes pDest
- );
- #endregion
- void ActivateObject(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppv
- );
- void ShutdownObject();
- void DetachObject();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("FA993888-4383-415A-A930-DD472A8CF6F7")]
- public interface IMFGetService
- {
- void GetService(
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidService,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid,
- [MarshalAs(UnmanagedType.Interface)] out object ppvObject
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("BB420AA4-765B-4A1F-91FE-D6A8A143924C"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFByteStreamHandler
- {
- void BeginCreateObject(
- [In, MarshalAs(UnmanagedType.Interface)] IMFByteStream pByteStream,
- [In, MarshalAs(UnmanagedType.LPWStr)] string pwszURL,
- [In] MFResolution dwFlags,
- [In, MarshalAs(UnmanagedType.Interface)] IPropertyStore pProps,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppIUnknownCancelCookie,
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnkState
- );
- void EndCreateObject(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncResult pResult,
- out MFObjectType pObjectType,
- [MarshalAs(UnmanagedType.IUnknown)] out object ppObject
- );
- void CancelObjectCreation(
- [In, MarshalAs(UnmanagedType.IUnknown)] object pIUnknownCancelCookie
- );
- void GetMaxNumberOfBytesRequiredForResolution(
- out long pqwBytes
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("F6696E82-74F7-4F3D-A178-8A5E09C3659F")]
- public interface IMFClockStateSink
- {
- void OnClockStart(
- [In] long hnsSystemTime,
- [In] long llClockStartOffset
- );
- void OnClockStop(
- [In] long hnsSystemTime
- );
- void OnClockPause(
- [In] long hnsSystemTime
- );
- void OnClockRestart(
- [In] long hnsSystemTime
- );
- void OnClockSetRate(
- [In] long hnsSystemTime,
- [In] float flRate
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("2EB1E945-18B8-4139-9B1A-D5D584818530")]
- public interface IMFClock
- {
- void GetClockCharacteristics(
- out MFClockCharacteristicsFlags pdwCharacteristics
- );
- void GetCorrelatedTime(
- [In] int dwReserved,
- out long pllClockTime,
- out long phnsSystemTime
- );
- void GetContinuityKey(
- out int pdwContinuityKey
- );
- void GetState(
- [In] int dwReserved,
- out MFClockState peClockState
- );
- void GetProperties(
- out MFClockProperties pClockProperties
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("868CE85C-8EA9-4F55-AB82-B009A910A805")]
- public interface IMFPresentationClock : IMFClock
- {
- #region IMFClock methods
- new void GetClockCharacteristics(
- out MFClockCharacteristicsFlags pdwCharacteristics
- );
- new void GetCorrelatedTime(
- [In] int dwReserved,
- out long pllClockTime,
- out long phnsSystemTime
- );
- new void GetContinuityKey(
- out int pdwContinuityKey
- );
- new void GetState(
- [In] int dwReserved,
- out MFClockState peClockState
- );
- new void GetProperties(
- out MFClockProperties pClockProperties
- );
- #endregion
- void SetTimeSource(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationTimeSource pTimeSource
- );
- void GetTimeSource(
- [MarshalAs(UnmanagedType.Interface)] out IMFPresentationTimeSource ppTimeSource
- );
- void GetTime(
- out long phnsClockTime
- );
- void AddClockStateSink(
- [In, MarshalAs(UnmanagedType.Interface)] IMFClockStateSink pStateSink
- );
- void RemoveClockStateSink(
- [In, MarshalAs(UnmanagedType.Interface)] IMFClockStateSink pStateSink
- );
- void Start(
- [In] long llClockStartOffset
- );
- void Stop();
- void Pause();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("7FF12CCE-F76F-41C2-863B-1666C8E5E139"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFPresentationTimeSource : IMFClock
- {
- #region IMFClock methods
- new void GetClockCharacteristics(
- out MFClockCharacteristicsFlags pdwCharacteristics
- );
- new void GetCorrelatedTime(
- [In] int dwReserved,
- out long pllClockTime,
- out long phnsSystemTime
- );
- new void GetContinuityKey(
- out int pdwContinuityKey
- );
- new void GetState(
- [In] int dwReserved,
- out MFClockState peClockState
- );
- new void GetProperties(
- out MFClockProperties pClockProperties
- );
- #endregion
- void GetUnderlyingClock(
- [MarshalAs(UnmanagedType.Interface)] out IMFClock ppClock
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
- Guid("0E1D6009-C9F3-442D-8C51-A42D2D49452F")]
- public interface IMFMediaSourceTopologyProvider
- {
- void GetMediaSourceTopology(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationDescriptor pPresentationDescriptor,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopology ppTopology
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("197CD219-19CB-4DE1-A64C-ACF2EDCBE59E"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFSequencerSource
- {
- void AppendTopology(
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pTopology,
- [In] MFSequencerTopologyFlags dwFlags,
- out int pdwId
- );
- void DeleteTopology(
- [In] int dwId
- );
- void GetPresentationContext(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationDescriptor pPD,
- out int pID,
- [MarshalAs(UnmanagedType.Interface)] out IMFTopology ppTopology
- );
- void UpdateTopology(
- [In] int dwId,
- [In, MarshalAs(UnmanagedType.Interface)] IMFTopology pTopology
- );
- void UpdateTopologyFlags(
- [In] int dwId,
- [In] MFSequencerTopologyFlags dwFlags
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("ACF92459-6A61-42BD-B57C-B43E51203CB0"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFContentProtectionManager
- {
- void BeginEnableContent(
- IMFActivate pEnablerActivate,
- IMFTopology pTopo,
- IMFAsyncCallback pCallback,
- [MarshalAs(UnmanagedType.Interface)] object punkState
- );
- void EndEnableContent(
- IMFAsyncResult pResult
- );
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("D3C4EF59-49CE-4381-9071-D5BCD044C770"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFContentEnabler
- {
- void GetEnableType(out Guid pType);
- void GetEnableURL(
- [MarshalAs(UnmanagedType.LPWStr)] out string ppwszURL,
- out int pcchURL,
- out MFURLTrustStatus pTrustStatus
- );
- void GetEnableData(
- [Out] out IntPtr ppbData,
- out int pcbData);
- void IsAutomaticSupported(
- [MarshalAs(UnmanagedType.Bool)] out bool pfAutomatic
- );
- void AutomaticEnable();
- void MonitorEnable();
- void Cancel();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("6EF2A660-47C0-4666-B13D-CBB717F2FA2C"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFMediaSink
- {
- void GetCharacteristics(
- out MFMediaSinkCharacteristics pdwCharacteristics
- );
- void AddStreamSink(
- [In] int dwStreamSinkIdentifier,
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pMediaType,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamSink ppStreamSink
- );
- void RemoveStreamSink(
- [In] int dwStreamSinkIdentifier
- );
- void GetStreamSinkCount(
- out int pcStreamSinkCount
- );
- void GetStreamSinkByIndex(
- [In] int dwIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamSink ppStreamSink
- );
- void GetStreamSinkById(
- [In] int dwStreamSinkIdentifier,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamSink ppStreamSink
- );
- void SetPresentationClock(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationClock pPresentationClock
- );
- void GetPresentationClock(
- [MarshalAs(UnmanagedType.Interface)] out IMFPresentationClock ppPresentationClock
- );
- void Shutdown();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("0A97B3CF-8E7C-4A3D-8F8C-0C843DC247FB"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFStreamSink : IMFMediaEventGenerator
- {
- #region IMFMediaEventGenerator methods
- new void GetEvent(
- [In] MFEventFlag dwFlags,
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaEvent ppEvent
- );
- new void BeginGetEvent(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object o);
- new void EndGetEvent(
- IMFAsyncResult pResult,
- out IMFMediaEvent ppEvent);
- new void QueueEvent(
- [In] MediaEventType met,
- [In, MarshalAs(UnmanagedType.LPStruct)] Guid guidExtendedType,
- [In] int hrStatus,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvValue
- );
- #endregion
- void GetMediaSink(
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaSink ppMediaSink
- );
- void GetIdentifier(
- out int pdwIdentifier
- );
- void GetMediaTypeHandler(
- [MarshalAs(UnmanagedType.Interface)] out IMFMediaTypeHandler ppHandler
- );
- void ProcessSample(
- [In, MarshalAs(UnmanagedType.Interface)] IMFSample pSample
- );
- void PlaceMarker(
- [In] MFStreamSinkMarkerType eMarkerType,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvarMarkerValue,
- [In, MarshalAs(UnmanagedType.LPStruct)] ConstPropVariant pvarContextValue
- );
- void Flush();
- }
- [ComImport, System.Security.SuppressUnmanagedCodeSecurity,
- Guid("EAECB74A-9A50-42CE-9541-6A7F57AA4AD7"),
- InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- public interface IMFFinalizableMediaSink : IMFMediaSink
- {
- #region IMFMediaSink methods
- new void GetCharacteristics(
- out MFMediaSinkCharacteristics pdwCharacteristics);
- new void AddStreamSink(
- [In] int dwStreamSinkIdentifier,
- [In, MarshalAs(UnmanagedType.Interface)] IMFMediaType pMediaType,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamSink ppStreamSink
- );
- new void RemoveStreamSink(
- [In] int dwStreamSinkIdentifier
- );
- new void GetStreamSinkCount(
- out int pcStreamSinkCount
- );
- new void GetStreamSinkByIndex(
- [In] int dwIndex,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamSink ppStreamSink
- );
- new void GetStreamSinkById(
- [In] int dwStreamSinkIdentifier,
- [MarshalAs(UnmanagedType.Interface)] out IMFStreamSink ppStreamSink
- );
- new void SetPresentationClock(
- [In, MarshalAs(UnmanagedType.Interface)] IMFPresentationClock pPresentationClock
- );
- new void GetPresentationClock(
- [MarshalAs(UnmanagedType.Interface)] out IMFPresentationClock ppPresentationClock
- );
- new void Shutdown();
- #endregion
- void BeginFinalize(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncCallback pCallback,
- [In, MarshalAs(UnmanagedType.IUnknown)] object pUnkState
- );
- void EndFinalize(
- [In, MarshalAs(UnmanagedType.Interface)] IMFAsyncResult pResult
- );
- }
- #endregion
- }