2 * Copyright 2012 André Hentschel
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 import
"wmsbuffer.idl";
21 import
"drmexternals.idl";
23 typedef struct _WMMediaType
27 BOOL bFixedSizeSamples
;
28 BOOL bTemporalCompression
;
33 [size_is(cbFormat
)] BYTE *pbFormat
;
36 typedef struct _WMWriterStatistics
40 QWORD qwDroppedSampleCount
;
41 QWORD qwDroppedByteCount
;
42 DWORD dwCurrentBitrate
;
43 DWORD dwAverageBitrate
;
44 DWORD dwExpectedBitrate
;
45 DWORD dwCurrentSampleRate
;
46 DWORD dwAverageSampleRate
;
47 DWORD dwExpectedSampleRate
;
48 } WM_WRITER_STATISTICS
;
50 typedef struct _WMWriterStatisticsEx
52 DWORD dwBitratePlusOverhead
;
53 DWORD dwCurrentSampleDropRateInQueue
;
54 DWORD dwCurrentSampleDropRateInCodec
;
55 DWORD dwCurrentSampleDropRateInMultiplexer
;
56 DWORD dwTotalSampleDropsInQueue
;
57 DWORD dwTotalSampleDropsInCodec
;
58 DWORD dwTotalSampleDropsInMultiplexer
;
59 } WM_WRITER_STATISTICS_EX
;
61 typedef struct _WMReaderStatistics
65 DWORD cPacketsReceived
;
66 DWORD cPacketsRecovered
;
69 } WM_READER_STATISTICS
;
71 typedef struct _WMReaderClientInfo
75 WCHAR
*wszBrowserUserAgent
;
76 WCHAR
*wszBrowserWebPage
;
81 WCHAR
*wszPlayerUserAgent
;
82 } WM_READER_CLIENTINFO
;
86 WM_SF_CLEANPOINT
= 0x1,
87 WM_SF_DISCONTINUITY
= 0x2,
91 typedef enum WMT_ATTR_DATATYPE
102 typedef enum WMT_STATUS
106 WMT_BUFFERING_START
= 2,
107 WMT_BUFFERING_STOP
= 3,
110 WMT_END_OF_SEGMENT
= 5,
111 WMT_END_OF_STREAMING
= 6,
115 WMT_MISSING_CODEC
= 10,
121 WMT_INDEX_PROGRESS
= 16,
122 WMT_SAVEAS_START
= 17,
123 WMT_SAVEAS_STOP
= 18,
124 WMT_NEW_SOURCEFLAGS
= 19,
125 WMT_NEW_METADATA
= 20,
126 WMT_BACKUPRESTORE_BEGIN
= 21,
127 WMT_SOURCE_SWITCH
= 22,
128 WMT_ACQUIRE_LICENSE
= 23,
129 WMT_INDIVIDUALIZE
= 24,
130 WMT_NEEDS_INDIVIDUALIZATION
= 25,
131 WMT_NO_RIGHTS_EX
= 26,
132 WMT_BACKUPRESTORE_END
= 27,
133 WMT_BACKUPRESTORE_CONNECTING
= 28,
134 WMT_BACKUPRESTORE_DISCONNECTING
= 29,
135 WMT_ERROR_WITHURL
= 30,
136 WMT_RESTRICTED_LICENSE
= 31,
137 WMT_CLIENT_CONNECT
= 32,
138 WMT_CLIENT_DISCONNECT
= 33,
139 WMT_NATIVE_OUTPUT_PROPS_CHANGED
= 34,
140 WMT_RECONNECT_START
= 35,
141 WMT_RECONNECT_END
= 36,
142 WMT_CLIENT_CONNECT_EX
= 37,
143 WMT_CLIENT_DISCONNECT_EX
= 38,
144 WMT_SET_FEC_SPAN
= 39,
145 WMT_PREROLL_READY
= 40,
146 WMT_PREROLL_COMPLETE
= 41,
147 WMT_CLIENT_PROPERTIES
= 42,
148 WMT_LICENSEURL_SIGNATURE_STATE
= 43,
149 WMT_INIT_PLAYLIST_BURN
= 44,
150 WMT_TRANSCRYPTOR_INIT
= 45,
151 WMT_TRANSCRYPTOR_SEEKED
= 46,
152 WMT_TRANSCRYPTOR_READ
= 47,
153 WMT_TRANSCRYPTOR_CLOSED
= 48,
154 WMT_PROXIMITY_RESULT
= 49,
155 WMT_PROXIMITY_COMPLETED
= 50,
156 WMT_CONTENT_ENABLER
= 51
159 typedef enum WMT_STREAM_SELECTION
162 WMT_CLEANPOINT_ONLY
= 1,
164 } WMT_STREAM_SELECTION
;
166 typedef enum WMT_VERSION
168 WMT_VER_4_0
= 0x00040000,
169 WMT_VER_7_0
= 0x00070000,
170 WMT_VER_8_0
= 0x00080000,
171 WMT_VER_9_0
= 0x00090000
174 typedef enum WMT_PLAY_MODE
176 WMT_PLAY_MODE_AUTOSELECT
,
178 WMT_PLAY_MODE_DOWNLOAD
,
179 WMT_PLAY_MODE_STREAMING
182 typedef enum tagWMT_OFFSET_FORMAT
184 WMT_OFFSET_FORMAT_100NS
,
185 WMT_OFFSET_FORMAT_FRAME_NUMBERS
,
186 WMT_OFFSET_FORMAT_PLAYLIST_OFFSET
,
187 WMT_OFFSET_FORMAT_TIMECODE
,
188 WMT_OFFSET_FORMAT_100NS_APPROXIMATE
191 typedef enum WMT_CODEC_INFO_TYPE
193 WMT_CODECINFO_AUDIO
= 0,
194 WMT_CODECINFO_VIDEO
= 1,
195 WMT_CODECINFO_UNKNOWN
= 0xFFFFFFFF,
196 } WMT_CODEC_INFO_TYPE
;
198 typedef enum WMT_PROXY_SETTINGS
200 WMT_PROXY_SETTING_NONE
= 0,
201 WMT_PROXY_SETTING_MANUAL
= 1,
202 WMT_PROXY_SETTING_AUTO
= 2,
203 WMT_PROXY_SETTING_BROWSER
= 3,
204 WMT_PROXY_SETTING_MAX
205 } WMT_PROXY_SETTINGS
;
207 typedef enum tagWMT_STORAGE_FORMAT
209 WMT_Storage_Format_MP3
= 0,
210 WMT_Storage_Format_V1
= 1
211 } WMT_STORAGE_FORMAT
;
213 #include
<pshpack2.h
>
214 typedef struct _WMStreamPrioritizationRecord
218 } WM_STREAM_PRIORITY_RECORD
;
220 typedef struct _WMT_TIMECODE_EXTENSION_DATA
226 } WMT_TIMECODE_EXTENSION_DATA
;
229 typedef struct _WM_PORT_NUMBER_RANGE
233 } WM_PORT_NUMBER_RANGE
;
235 typedef LPCWSTR LPCWSTR_WMSDK_TYPE_SAFE
;
239 uuid(6d7cdc70
-9888-11d3
-8edc
-00c04f6109cf
),
240 pointer_default(unique),
243 interface IWMStatusCallback
: IUnknown
246 [in] WMT_STATUS Status
,
248 [in] WMT_ATTR_DATATYPE dwType
,
250 [in] void *pvContext
);
255 uuid(96406bd8
-2b2b
-11d3
-b36b
-00c04f6108ff
),
256 pointer_default(unique),
259 interface IWMReaderCallback
: IWMStatusCallback
262 [in] DWORD dwOutputNum
,
263 [in] QWORD cnsSampleTime
,
264 [in] QWORD cnsSampleDuration
,
266 [in] INSSBuffer
*pSample
,
267 [in] void *pvContext
);
273 uuid(96406beb
-2b2b
-11d3
-b36b
-00c04f6108ff
),
275 interface IWMReaderCallbackAdvanced
: IUnknown
277 HRESULT OnStreamSample
(WORD stream_number
, QWORD pts
, QWORD duration
, DWORD flags
, INSSBuffer
*sample
, void *context
);
278 HRESULT OnTime
(QWORD time
, void *context
);
279 HRESULT OnStreamSelection
(WORD count
, WORD
*stream_numbers
, WMT_STREAM_SELECTION
*selections
, void *context
);
280 HRESULT OnOutputPropsChanged
(DWORD output_number
, WM_MEDIA_TYPE
*mt
, void *context
);
281 HRESULT AllocateForStream
(WORD stream_number
, DWORD size
, INSSBuffer
**sample
, void *context
);
282 HRESULT AllocateForOutput
(DWORD output_number
, DWORD size
, INSSBuffer
**sample
, void *context
);
287 uuid(96406Bdd
-2b2b
-11d3
-b36b
-00c04f6108ff
),
288 pointer_default(unique),
291 interface IWMStreamList
: IUnknown
294 [out, size_is(*pcStreams
)] WORD
*pwStreamNumArray
,
295 [in, out] WORD
*pcStreams
);
297 HRESULT AddStream
([in] WORD wStreamNum
);
298 HRESULT RemoveStream
([in] WORD wStreamNum
);
303 uuid(96406Bde
-2b2b
-11d3
-b36b
-00c04f6108ff
),
304 pointer_default(unique),
307 interface IWMMutualExclusion
: IWMStreamList
309 HRESULT GetType
([out] GUID
*pguidType
);
310 HRESULT SetType
([in] REFGUID guidType
);
315 uuid(ad694af1
-f8d9
-42f8
-bc47
-70311b0c4f9e
),
316 pointer_default(unique),
319 interface IWMBandwidthSharing
: IWMStreamList
321 HRESULT GetType
([out] GUID
*guid
);
322 HRESULT SetType
([in] REFGUID guid
);
324 HRESULT GetBandwidth
(
325 [out] DWORD
*bitrate
,
326 [out] DWORD
*buffer
);
328 HRESULT SetBandwidth
(
335 uuid(8c1c6090
-f9a8
-4748-8ec3
-dd1108ba1e77
),
336 pointer_default(unique),
339 interface IWMStreamPrioritization
: IUnknown
341 HRESULT GetPriorityRecords
(
342 [out] WM_STREAM_PRIORITY_RECORD
*array
,
343 [in, out] WORD
*records
);
345 HRESULT SetPriorityRecords
(
346 [in] WM_STREAM_PRIORITY_RECORD
*array
,
352 uuid(96406Bdc
-2b2b
-11d3
-b36b
-00c04f6108ff
),
353 pointer_default(unique),
356 interface IWMStreamConfig
: IUnknown
358 HRESULT GetStreamType
([out] GUID
*pguidStreamType
);
359 HRESULT GetStreamNumber
([out] WORD
*pwStreamNum
);
360 HRESULT SetStreamNumber
([in] WORD wStreamNum
);
362 HRESULT GetStreamName
(
363 [out, size_is(*pcchStreamName
)] WCHAR
*pwszStreamName
,
364 [in, out] WORD
*pcchStreamName
);
366 HRESULT SetStreamName
([in] LPCWSTR_WMSDK_TYPE_SAFE pwszStreamName
);
368 HRESULT GetConnectionName
(
369 [out, size_is(*pcchInputName
)] WCHAR
*pwszInputName
,
370 [in, out] WORD
*pcchInputName
);
372 HRESULT SetConnectionName
([in] LPCWSTR_WMSDK_TYPE_SAFE pwszInputName
);
373 HRESULT GetBitrate
([out] DWORD
*pdwBitrate
);
374 HRESULT SetBitrate
([in] DWORD pdwBitrate
);
375 HRESULT GetBufferWindow
([out] DWORD
*pmsBufferWindow
);
376 HRESULT SetBufferWindow
([in] DWORD msBufferWindow
);
381 uuid(96406bdb
-2b2b
-11d3
-b36b
-00c04f6108ff
),
382 pointer_default(unique),
385 interface IWMProfile
: IUnknown
388 [out] WMT_VERSION
*pdwVersion
);
391 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
392 [in, out] DWORD
*pcchName
);
395 [in] const WCHAR
*pwszName
);
397 HRESULT GetDescription
(
398 [out, size_is(*pcchDescription
)] WCHAR
*pwszDescription
,
399 [in, out] DWORD
*pcchDescription
);
401 HRESULT SetDescription
(
402 [in] const WCHAR
*pwszDescription
);
404 HRESULT GetStreamCount
(
405 [out] DWORD
*pcStreams
);
408 [in] DWORD dwStreamIndex
,
409 [out] IWMStreamConfig
**ppConfig
);
411 HRESULT GetStreamByNumber
(
412 [in] WORD wStreamNum
,
413 [out] IWMStreamConfig
**ppConfig
);
415 HRESULT RemoveStream
(
416 [in] IWMStreamConfig
*pConfig
);
418 HRESULT RemoveStreamByNumber
(
419 [in] WORD wStreamNum
);
422 [in] IWMStreamConfig
*pConfig
);
424 HRESULT ReconfigStream
(
425 [in] IWMStreamConfig
*pConfig
);
427 HRESULT CreateNewStream
(
428 [in] REFGUID guidStreamType
,
429 [out] IWMStreamConfig
**ppConfig
);
431 HRESULT GetMutualExclusionCount
(
434 HRESULT GetMutualExclusion
(
435 [in] DWORD dwMEIndex
,
436 [out] IWMMutualExclusion
**ppME
);
438 HRESULT RemoveMutualExclusion
(
439 [in] IWMMutualExclusion
*pME
);
441 HRESULT AddMutualExclusion
(
442 [in] IWMMutualExclusion
*pME
);
444 HRESULT CreateNewMutualExclusion
(
445 [out] IWMMutualExclusion
**ppME
);
450 uuid(07e72d33
-d94e
-4be7
-8843-60ae5ff7e5f5
),
451 pointer_default(unique),
454 interface IWMProfile2
: IWMProfile
456 HRESULT GetProfileID
([out] GUID
*guid
);
461 uuid(00ef96cc
-a461
-4546-8bcd
-c9a28f0e06f5
),
462 pointer_default(unique),
465 interface IWMProfile3
: IWMProfile2
467 HRESULT GetStorageFormat
([out] WMT_STORAGE_FORMAT
*storage
);
468 HRESULT SetStorageFormat
([in] WMT_STORAGE_FORMAT storage
);
470 HRESULT GetBandwidthSharingCount
([out] DWORD
*count
);
472 HRESULT GetBandwidthSharing
(
474 [out] IWMBandwidthSharing
**bandwidth
);
476 HRESULT RemoveBandwidthSharing
([in] IWMBandwidthSharing
*bandwidth
);
478 HRESULT AddBandwidthSharing
([in] IWMBandwidthSharing
*bandwidth
);
480 HRESULT CreateNewBandwidthSharing
([out] IWMBandwidthSharing
**bandwidth
);
482 HRESULT GetStreamPrioritization
([out] IWMStreamPrioritization
**stream
);
484 HRESULT SetStreamPrioritization
([in] IWMStreamPrioritization
*stream
);
486 HRESULT RemoveStreamPrioritization
();
488 HRESULT CreateNewStreamPrioritization
([out] IWMStreamPrioritization
**stream
);
490 HRESULT GetExpectedPacketCount
(
492 [out] QWORD
*packets
);
497 uuid(d16679f2
-6ca0
-472d
-8d31
-2f5d55aee155
),
498 pointer_default(unique),
501 interface IWMProfileManager
: IUnknown
503 HRESULT CreateEmptyProfile
(
504 [in] WMT_VERSION dwVersion
,
505 [out] IWMProfile
**ppProfile
);
507 HRESULT LoadProfileByID
(
508 [in] REFGUID guidProfile
,
509 [out] IWMProfile
**ppProfile
);
511 HRESULT LoadProfileByData
(
512 [in] const WCHAR
*pwszProfile
,
513 [out] IWMProfile
**ppProfile
);
516 [in] IWMProfile
*pIWMProfile
,
517 [in] WCHAR
*pwszProfile
,
518 [in, out] DWORD
*pdwLength
);
520 HRESULT GetSystemProfileCount
(
521 [out] DWORD
*pcProfiles
);
523 HRESULT LoadSystemProfile
(
524 [in] DWORD dwProfileIndex
,
525 [out] IWMProfile
**ppProfile
);
530 uuid(7a924e51
-73c1
-494d
-8019-23d37ed9b89a
),
531 pointer_default(unique),
534 interface IWMProfileManager2
: IWMProfileManager
536 HRESULT GetSystemProfileVersion
(WMT_VERSION
*version);
537 HRESULT SetSystemProfileVersion
(WMT_VERSION
version);
540 cpp_quote
("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
544 uuid(a970f41e
-34de
-4a98
-b3ba
-e4b3ca7528f0
),
545 pointer_default(unique),
548 interface IWMCodecInfo
: IUnknown
550 HRESULT GetCodecInfoCount
(
554 HRESULT GetCodecFormatCount
(
556 [in] DWORD codecindex
,
557 [out] DWORD
*formatcount
);
559 HRESULT GetCodecFormat
(
561 [in] DWORD codecindex
,
562 [in] DWORD formatindex
,
563 [out] IWMStreamConfig
**streamconfig
);
568 uuid(aa65e273
-b686
-4056-91ec
-dd768d4df710
),
569 pointer_default(unique),
572 interface IWMCodecInfo2
: IWMCodecInfo
574 HRESULT GetCodecName
(
576 [in] DWORD codecindex
,
577 [out, size_is(*namesize
)] WCHAR
*name
,
578 [in, out] DWORD
*namesize
);
580 HRESULT GetCodecFormatDesc
(
582 [in] DWORD codecindex
,
583 [in] DWORD formatindex
,
584 [out] IWMStreamConfig
**streamconfig
,
585 [out, size_is(*descrsize
)] WCHAR
*description
,
586 [in, out] DWORD
*descrsize
);
591 uuid(7e51f487
-4d93
-4f98
-8ab4
-27d0565adc51
),
592 pointer_default(unique),
595 interface IWMCodecInfo3
: IWMCodecInfo2
597 HRESULT GetCodecFormatProp
(
599 [in] DWORD codecindex
,
600 [in] DWORD formatindex
,
601 [in] const WCHAR
*name
,
602 [out] WMT_ATTR_DATATYPE
*type
,
603 [out, size_is(*size
)] BYTE *value
,
604 [in, out] DWORD
*size
);
606 HRESULT GetCodecProp
(
608 [in] DWORD codecindex
,
609 [in] const WCHAR
*name
,
610 [out] WMT_ATTR_DATATYPE
*type
,
611 [out, size_is(*size
)] BYTE *value
,
612 [in, out] DWORD
*size
);
614 HRESULT SetCodecEnumerationSetting
(
616 [in] DWORD codecindex
,
617 [in] const WCHAR
*name
,
618 [in] WMT_ATTR_DATATYPE type
,
619 [in, size_is(size
)] const BYTE *value
,
622 HRESULT GetCodecEnumerationSetting
(
624 [in] DWORD codecindex
,
625 [in] const WCHAR
*name
,
626 [out] WMT_ATTR_DATATYPE
*type
,
627 [out, size_is(*size
)] BYTE *value
,
628 [in, out] DWORD
*size
);
631 cpp_quote
("static const WCHAR g_wszNumPasses[] = {'_','P','A','S','S','E','S','U','S','E','D',0};")
632 cpp_quote
("static const WCHAR g_wszVBREnabled[] = {'_','V','B','R','E','N','A','B','L','E','D',0};")
636 uuid(96406bce
-2b2b
-11d3
-b36b
-00c04f6108ff
),
637 pointer_default(unique),
640 interface IWMMediaProps
: IUnknown
643 [out] GUID
*pguidType
);
645 HRESULT GetMediaType
(
646 [out] WM_MEDIA_TYPE
*pType
,
647 [in, out] DWORD
*pcbType
);
649 HRESULT SetMediaType
(
650 [in] WM_MEDIA_TYPE
*pType
);
655 uuid(96406bd7
-2b2b
-11d3
-b36b
-00c04f6108ff
),
656 pointer_default(unique),
659 interface IWMOutputMediaProps
: IWMMediaProps
661 HRESULT GetStreamGroupName
(
662 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
663 [in, out] WORD
*pcchName
);
665 HRESULT GetConnectionName
(
666 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
667 [in, out] WORD
*pcchName
);
672 uuid(96406bd9
-2b2b
-11d3
-b36b
-00c04f6108ff
),
673 pointer_default(unique),
676 interface IWMMetadataEditor
: IUnknown
679 [in] const WCHAR
*pwszFilename
);
688 uuid(96406bd6
-2b2b
-11d3
-b36b
-00c04f6108ff
),
689 pointer_default(unique),
692 interface IWMReader
: IUnknown
695 [in] const WCHAR
*pwszURL
,
696 [in] IWMReaderCallback
*pCallback
,
697 [in] void *pvContext
);
701 HRESULT GetOutputCount
(
702 [out] DWORD
*pcOutputs
);
704 HRESULT GetOutputProps
(
705 [in] DWORD dwOutputNum
,
706 [out] IWMOutputMediaProps
**ppOutput
);
708 HRESULT SetOutputProps
(
709 [in] DWORD dwOutputNum
,
710 [in] IWMOutputMediaProps
*pOutput
);
712 HRESULT GetOutputFormatCount
(
713 [in] DWORD dwOutputNumber
,
714 [out] DWORD
*pcFormats
);
716 HRESULT GetOutputFormat
(
717 [in] DWORD dwOutputNumber
,
718 [in] DWORD dwFormatNumber
,
719 [out] IWMOutputMediaProps
** ppProps
);
723 [in] QWORD cnsDuration
,
725 [in] void *pvContext
);
736 uuid(e5b7ca9a
-0f1c
-4f66
-9002-74ec50d8b304
),
737 pointer_default(unique),
740 interface IWMPlayerHook
: IUnknown
747 uuid(96406bea
-2b2b
-11d3
-b36b
-00c04f6108ff
),
748 pointer_default(unique),
751 interface IWMReaderAdvanced
: IUnknown
753 HRESULT SetUserProvidedClock
(
754 [in] BOOL fUserClock
);
756 HRESULT GetUserProvidedClock
(
757 [out] BOOL
*pfUserClock
);
762 HRESULT SetManualStreamSelection
(
763 [in] BOOL fSelection
);
765 HRESULT GetManualStreamSelection
(
766 [out] BOOL
*pfSelection
);
768 HRESULT SetStreamsSelected
(
769 [in] WORD cStreamCount
,
770 [in] WORD
*pwStreamNumbers
,
771 [in] WMT_STREAM_SELECTION
*pSelections
);
773 HRESULT GetStreamSelected
(
774 [in] WORD wStreamNum
,
775 [out] WMT_STREAM_SELECTION
*pSelection
);
777 HRESULT SetReceiveSelectionCallbacks
(
778 [in] BOOL fGetCallbacks
);
780 HRESULT GetReceiveSelectionCallbacks
(
781 [out] BOOL
*pfGetCallbacks
);
783 HRESULT SetReceiveStreamSamples
(
784 [in] WORD wStreamNum
,
785 [in] BOOL fReceiveStreamSamples
);
787 HRESULT GetReceiveStreamSamples
(
788 [in] WORD wStreamNum
,
789 [out] BOOL
*pfReceiveStreamSamples
);
791 HRESULT SetAllocateForOutput
(
792 [in] DWORD dwOutputNum
,
793 [in] BOOL fAllocate
);
795 HRESULT GetAllocateForOutput
(
796 [in] DWORD dwOutputNum
,
797 [out] BOOL
*pfAllocate
);
799 HRESULT SetAllocateForStream
(
800 [in] WORD wStreamNum
,
801 [in] BOOL fAllocate
);
803 HRESULT GetAllocateForStream
(
804 [in] WORD dwStreamNum
,
805 [out] BOOL
*pfAllocate
);
807 HRESULT GetStatistics
(
808 [in, out] WM_READER_STATISTICS
*pStatistics
);
810 HRESULT SetClientInfo
(
811 [in] WM_READER_CLIENTINFO
*pClientInfo
);
813 HRESULT GetMaxOutputSampleSize
(
815 [out] DWORD
*pcbMax
);
817 HRESULT GetMaxStreamSampleSize
(
819 [out] DWORD
*pcbMax
);
821 HRESULT NotifyLateDelivery
(
827 uuid(ae14a945
-b90c
-4d0d
-9127-80d665f7d73e
),
828 pointer_default(unique),
831 interface IWMReaderAdvanced2
: IWMReaderAdvanced
834 [in] WMT_PLAY_MODE Mode
);
837 [out] WMT_PLAY_MODE
*pMode
);
839 HRESULT GetBufferProgress
(
840 [out] DWORD
*pdwPercent
,
841 [out] QWORD
*pcnsBuffering
);
843 HRESULT GetDownloadProgress
(
844 [out] DWORD
*pdwPercent
,
845 [out] QWORD
*pqwBytesDownloaded
,
846 [out] QWORD
*pcnsDownload
);
848 HRESULT GetSaveAsProgress
(
849 [out] DWORD
*pdwPercent
);
852 [in] const WCHAR
*pwszFilename
);
854 HRESULT GetProtocolName
(
855 [out, size_is(*pcchProtocol
)] WCHAR
*pwszProtocol
,
856 [in, out] DWORD
*pcchProtocol
);
858 HRESULT StartAtMarker
(
859 [in] WORD wMarkerIndex
,
860 [in] QWORD cnsDuration
,
862 [in] void *pvContext
);
864 HRESULT GetOutputSetting
(
865 [in] DWORD dwOutputNum
,
866 [in] LPCWSTR pszName
,
867 [out] WMT_ATTR_DATATYPE
*pType
,
868 [out, size_is(*pcbLength
)] BYTE *pValue
,
869 [in, out] WORD
*pcbLength
);
871 HRESULT SetOutputSetting
(
872 [in] DWORD dwOutputNum
,
873 [in] LPCWSTR pszName
,
874 [in] WMT_ATTR_DATATYPE Type
,
875 [in, size_is(cbLength
)] const BYTE *pValue
,
880 [in] QWORD cnsDuration
,
883 HRESULT SetLogClientID
(
884 [in] BOOL fLogClientID
);
886 HRESULT GetLogClientID
(
887 [out] BOOL
*pfLogClientID
);
889 HRESULT StopBuffering
();
892 [in] IStream
*pStream
,
893 [in] IWMReaderCallback
*pCallback
,
894 [in] void *pvContext
);
899 uuid(5dc0674b
-f04B
-4a4e
-9f2a
-b1afde2c8100
),
900 pointer_default(unique),
903 interface IWMReaderAdvanced3
: IWMReaderAdvanced2
905 HRESULT StopNetStreaming
();
907 HRESULT StartAtPosition
(
908 [in] WORD wStreamNum
,
909 [in] void *pvOffsetStart
,
910 [in] void *pvDuration
,
911 [in] WMT_OFFSET_FORMAT dwOffsetFormat
,
913 [in] void *pvContext
);
918 uuid(945a76a2
-12ae
-4d48
-bd3c
-cd1d90399b85
),
919 pointer_default(unique),
922 interface IWMReaderAdvanced4
: IWMReaderAdvanced3
924 HRESULT GetLanguageCount
(
925 [in] DWORD dwOutputNum
,
926 [out] WORD
*pwLanguageCount
);
929 [in] DWORD dwOutputNum
,
931 [out, size_is(*pcchLanguageStringLength
)] WCHAR
*pwszLanguageString
,
932 [in, out] WORD
*pcchLanguageStringLength
);
934 HRESULT GetMaxSpeedFactor
(
935 [out] double *pdblFactor
);
937 HRESULT IsUsingFastCache
(
938 [out] BOOL
*pfUsingFastCache
);
941 [in] LPCWSTR wszNameSpace
,
942 [in] LPCWSTR wszName
,
943 [in] LPCWSTR wszValue
);
945 HRESULT SendLogParams
();
947 HRESULT CanSaveFileAs
(
948 [out] BOOL
*pfCanSave
);
950 HRESULT CancelSaveFileAs
();
953 [out, size_is(*pcchURL
)] WCHAR
*pwszURL
,
954 [in, out] DWORD
*pcchURL
);
959 uuid(24c44db0
-55d1
-49ae
-a5cc
-f13815e36363
),
960 pointer_default(unique),
963 interface IWMReaderAdvanced5
: IWMReaderAdvanced4
965 HRESULT SetPlayerHook
(
966 [in] DWORD dwOutputNum
,
967 [in] IWMPlayerHook
*pHook
);
972 uuid(18a2e7f8
-428f
-4acd
-8a00
-e64639bc93de
),
973 pointer_default(unique),
976 interface IWMReaderAdvanced6
: IWMReaderAdvanced5
978 HRESULT SetProtectStreamSamples
(
979 [in, size_is(cbCertificate
)] BYTE *pbCertificate
,
980 [in] DWORD cbCertificate
,
981 [in] DWORD dwCertificateType
,
983 [out, size_is(*pcbInitializationVector
)] BYTE *pbInitializationVector
,
984 [in, out] DWORD
*pcbInitializationVector
);
989 uuid(9397f121
-7705-4dc9
-b049
-98b698188414
),
990 pointer_default( unique ),
993 interface IWMSyncReader
: IUnknown
996 [in] const WCHAR
*pwszFilename
);
1001 [in] QWORD cnsStartTime
,
1002 [in] LONGLONG cnsDuration
);
1004 HRESULT SetRangeByFrame
(
1005 [in] WORD wStreamNum
,
1006 [in] QWORD qwFrameNumber
,
1007 [in] LONGLONG cFramesToRead
);
1009 HRESULT GetNextSample
(
1010 [in] WORD wStreamNum
,
1011 [out] INSSBuffer
**ppSample
,
1012 [out] QWORD
*pcnsSampleTime
,
1013 [out] QWORD
*pcnsDuration
,
1014 [out] DWORD
*pdwFlags
,
1015 [out] DWORD
*pdwOutputNum
,
1016 [out] WORD
*pwStreamNum
);
1018 HRESULT SetStreamsSelected
(
1019 [in] WORD cStreamCount
,
1020 [in] WORD
*pwStreamNumbers
,
1021 [in] WMT_STREAM_SELECTION
*pSelections
);
1023 HRESULT GetStreamSelected
(
1024 [in] WORD wStreamNum
,
1025 [out] WMT_STREAM_SELECTION
*pSelection
);
1027 HRESULT SetReadStreamSamples
(
1028 [in] WORD wStreamNum
,
1029 [in] BOOL fCompressed
);
1031 HRESULT GetReadStreamSamples
(
1032 [in] WORD wStreamNum
,
1033 [out] BOOL
*pfCompressed
);
1035 HRESULT GetOutputSetting
(
1036 [in] DWORD dwOutputNum
,
1037 [in] LPCWSTR pszName
,
1038 [out] WMT_ATTR_DATATYPE
*pType
,
1039 [out, size_is(*pcbLength
)] BYTE *pValue
,
1040 [in, out] WORD
*pcbLength
);
1042 HRESULT SetOutputSetting
(
1043 [in] DWORD dwOutputNum
,
1044 [in] LPCWSTR pszName
,
1045 [in] WMT_ATTR_DATATYPE Type
,
1046 [in, size_is(cbLength
)] const BYTE *pValue
,
1047 [in] WORD cbLength
);
1049 HRESULT GetOutputCount
(
1050 [out] DWORD
*pcOutputs
);
1052 HRESULT GetOutputProps
(
1053 [in] DWORD dwOutputNum
,
1054 [out] IWMOutputMediaProps
**ppOutput
);
1056 HRESULT SetOutputProps
(
1057 [in] DWORD dwOutputNum
,
1058 [in] IWMOutputMediaProps
*pOutput
);
1060 HRESULT GetOutputFormatCount
(
1061 [in] DWORD dwOutputNum
,
1062 [out] DWORD
*pcFormats
);
1064 HRESULT GetOutputFormat
(
1065 [in] DWORD dwOutputNum
,
1066 [in] DWORD dwFormatNum
,
1067 [out] IWMOutputMediaProps
**ppProps
);
1069 HRESULT GetOutputNumberForStream
(
1070 [in] WORD wStreamNum
,
1071 [out] DWORD
*pdwOutputNum
);
1073 HRESULT GetStreamNumberForOutput
(
1074 [in] DWORD dwOutputNum
,
1075 [out] WORD
*pwStreamNum
);
1077 HRESULT GetMaxOutputSampleSize
(
1078 [in] DWORD dwOutput
,
1079 [out] DWORD
*pcbMax
);
1081 HRESULT GetMaxStreamSampleSize
(
1083 [out] DWORD
*pcbMax
);
1086 [in] IStream
*pStream
);
1091 uuid(9f762fa7
-a22e
-428d
-93c9
-ac82f3aafe5a
),
1092 pointer_default( unique ),
1095 interface IWMReaderAllocatorEx
: IUnknown
1097 HRESULT AllocateForStreamEx
(
1098 [in] WORD wStreamNum
,
1099 [in] DWORD cbBuffer
,
1100 [out] INSSBuffer
**ppBuffer
,
1102 [in] QWORD cnsSampleTime
,
1103 [in] QWORD cnsSampleDuration
,
1104 [in] void *pvContext
);
1106 HRESULT AllocateForOutputEx
(
1108 [in] DWORD cbBuffer
,
1109 [out] INSSBuffer
**ppBuffer
,
1111 [in] QWORD cnsSampleTime
,
1112 [in] QWORD cnsSampleDuration
,
1113 [in] void *pvContext
);
1118 uuid(faed3d21
-1b6b
-4af7
-8cb6
-3e189bbc187b
),
1119 pointer_default( unique ),
1122 interface IWMSyncReader2
: IWMSyncReader
1124 HRESULT SetRangeByTimecode
(
1125 [in] WORD wStreamNum
,
1126 [in] WMT_TIMECODE_EXTENSION_DATA
*pStart
,
1127 [in] WMT_TIMECODE_EXTENSION_DATA
*pEnd
);
1129 HRESULT SetRangeByFrameEx
(
1130 [in] WORD wStreamNum
,
1131 [in] QWORD qwFrameNumber
,
1132 [in] LONGLONG cFramesToRead
,
1133 [out] QWORD
*pcnsStartTime
);
1135 HRESULT SetAllocateForOutput
(
1136 [in] DWORD dwOutputNum
,
1137 [in] IWMReaderAllocatorEx
*pAllocator
);
1139 HRESULT GetAllocateForOutput
(
1140 [in] DWORD dwOutputNum
,
1141 [out] IWMReaderAllocatorEx
**ppAllocator
);
1143 HRESULT SetAllocateForStream
(
1144 [in] DWORD dwStreamNum
,
1145 [in] IWMReaderAllocatorEx
*pAllocator
);
1147 HRESULT GetAllocateForStream
(
1148 [in] DWORD dwStreamNum
,
1149 [out] IWMReaderAllocatorEx
**ppAllocator
);
1154 uuid(96406bd5
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1155 pointer_default(unique),
1158 interface IWMInputMediaProps
: IWMMediaProps
1160 HRESULT GetConnectionName
(
1161 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
1162 [in, out] WORD
*pcchName
);
1164 HRESULT GetGroupName
(
1165 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
1166 [in, out] WORD
*pcchName
);
1171 uuid(96406be4
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1172 pointer_default(unique),
1175 interface IWMWriterSink
: IUnknown
1178 [in] INSSBuffer
*pHeader
);
1181 [out] BOOL
*pfRealTime
);
1183 HRESULT AllocateDataUnit
(
1184 [in] DWORD cbDataUnit
,
1185 [out] INSSBuffer
**ppDataUnit
);
1188 [in] INSSBuffer
*pDataUnit
);
1190 HRESULT OnEndWriting
();
1195 uuid(96406bd4
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1196 pointer_default(unique),
1199 interface IWMWriter
: IUnknown
1201 HRESULT SetProfileByID
(
1202 [in] REFGUID guidProfile
);
1205 [in] IWMProfile
*pProfile
);
1207 HRESULT SetOutputFilename
(
1208 [in] const WCHAR
*pwszFilename
);
1210 HRESULT GetInputCount
(
1211 [out] DWORD
*pcInputs
);
1213 HRESULT GetInputProps
(
1214 [in] DWORD dwInputNum
,
1215 [out] IWMInputMediaProps
**ppInput
);
1217 HRESULT SetInputProps
(
1218 [in] DWORD dwInputNum
,
1219 [in] IWMInputMediaProps
*pInput
);
1221 HRESULT GetInputFormatCount
(
1222 [in] DWORD dwInputNumber
,
1223 [out] DWORD
*pcFormats
);
1225 HRESULT GetInputFormat
(
1226 [in] DWORD dwInputNumber
,
1227 [in] DWORD dwFormatNumber
,
1228 [out] IWMInputMediaProps
**pProps
);
1230 HRESULT BeginWriting
();
1232 HRESULT EndWriting
();
1234 HRESULT AllocateSample
(
1235 [in] DWORD dwSampleSize
,
1236 [out] INSSBuffer
**ppSample
);
1238 HRESULT WriteSample
(
1239 [in] DWORD dwInputNum
,
1240 [in] QWORD cnsSampleTime
,
1242 [in] INSSBuffer
*pSample
);
1249 uuid(96406be3
-2b2b
-11d3
-b36b
-00C04f6108ff
),
1250 pointer_default(unique),
1253 interface IWMWriterAdvanced
: IUnknown
1255 HRESULT GetSinkCount
(
1256 [out] DWORD
*pcSinks
);
1259 [in] DWORD dwSinkNum
,
1260 [out] IWMWriterSink
**ppSink
);
1263 [in] IWMWriterSink
*pSink
);
1266 [in] IWMWriterSink
*pSink
);
1268 HRESULT WriteStreamSample
(
1269 [in] WORD wStreamNum
,
1270 [in] QWORD cnsSampleTime
,
1271 [in] DWORD msSampleSendTime
,
1272 [in] QWORD cnsSampleDuration
,
1274 [in] INSSBuffer
*pSample
);
1276 HRESULT SetLiveSource
(
1277 BOOL fIsLiveSource
);
1280 [out] BOOL
*pfRealTime
);
1282 HRESULT GetWriterTime
(
1283 [out] QWORD
*pCurrentTime
);
1285 HRESULT GetStatistics
(
1286 [in] WORD wStreamNum
,
1287 [out] WM_WRITER_STATISTICS
*pStats
);
1289 HRESULT SetSyncTolerance
(
1290 [in] DWORD msWindow
);
1292 HRESULT GetSyncTolerance
(
1293 [out] DWORD
*pmsWindow
);
1298 uuid(962dc1ec
-c046
-4db8
-9cc7
-26ceae500817
),
1299 pointer_default(unique),
1302 interface IWMWriterAdvanced2
: IWMWriterAdvanced
1304 HRESULT GetInputSetting
(
1305 [in] DWORD dwInputNum
,
1306 [in] LPCWSTR pszName
,
1307 [out] WMT_ATTR_DATATYPE
*pType
,
1308 [out, size_is(*pcbLength
)] BYTE *pValue
,
1309 [in, out] WORD
*pcbLength
);
1311 HRESULT SetInputSetting
(
1312 [in] DWORD dwInputNum
,
1313 [in] LPCWSTR pszName
,
1314 [in] WMT_ATTR_DATATYPE Type
,
1315 [in, size_is(cbLength
)] const BYTE *pValue
,
1316 [in] WORD cbLength
);
1321 uuid(2cd6492d
-7c37
-4e76
-9d3b
-59261183a22e
),
1322 pointer_default(unique),
1325 interface IWMWriterAdvanced3
: IWMWriterAdvanced2
1327 HRESULT GetStatisticsEx
(
1328 [in] WORD wStreamNum
,
1329 [out] WM_WRITER_STATISTICS_EX
*pStats
);
1331 HRESULT SetNonBlocking
();
1336 uuid(96406bda
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1337 pointer_default(unique),
1340 interface IWMHeaderInfo
: IUnknown
1342 HRESULT GetAttributeCount
(
1343 [in] WORD stream_num
,
1344 [out] WORD
*attributes
);
1346 HRESULT GetAttributeByIndex
(
1348 [in, out] WORD
*stream_num
,
1349 [out, size_is( *name_len
)] WCHAR
*name
,
1350 [in, out] WORD
*name_len
,
1351 [out] WMT_ATTR_DATATYPE
*type
,
1352 [out, size_is( *length
)] BYTE *value
,
1353 [in, out] WORD
*length
);
1355 HRESULT GetAttributeByName
(
1356 [in, out] WORD
*stream_num
,
1358 [out] WMT_ATTR_DATATYPE
*type
,
1359 [out, size_is( *length
)] BYTE *value
,
1360 [in, out] WORD
*length
);
1362 HRESULT SetAttribute
(
1363 [in] WORD stream_num
,
1365 [in] WMT_ATTR_DATATYPE type
,
1366 [in, size_is( length
)] const BYTE *value
,
1369 HRESULT GetMarkerCount
(
1370 [out] WORD
*markers
);
1374 [out, size_is( *marker_len
)] WCHAR
*marker_name
,
1375 [in, out] WORD
*marker_len
,
1376 [out] QWORD
*marker_time
);
1379 [in] LPCWSTR_WMSDK_TYPE_SAFE marker_name
,
1380 [in] QWORD marker_time
);
1382 HRESULT RemoveMarker
(
1385 HRESULT GetScriptCount
(
1386 [out] WORD
*scripts
);
1390 [out, size_is( *type_len
)] WCHAR
*type
,
1391 [in, out] WORD
*type_len
,
1392 [out, size_is( *command_len
)] WCHAR
*command
,
1393 [in, out] WORD
*command_len
,
1394 [out] QWORD
*script_time
);
1397 [in] LPCWSTR_WMSDK_TYPE_SAFE type
,
1398 [in] LPCWSTR_WMSDK_TYPE_SAFE command
,
1399 [in] QWORD script_time
);
1401 HRESULT RemoveScript
(
1407 uuid(15cf9781
-454e-482e
-b393
-85fae487a810
),
1408 pointer_default(unique),
1411 interface IWMHeaderInfo2
: IWMHeaderInfo
1413 HRESULT GetCodecInfoCount
(
1414 [out] DWORD
*codec_infos
);
1416 HRESULT GetCodecInfo
(
1418 [in, out] WORD
*name_len
,
1419 [out, size_is( *name_len
)] WCHAR
*name
,
1420 [in, out] WORD
*description_len
,
1421 [out, size_is( *description_len
)] WCHAR
*description
,
1422 [out] WMT_CODEC_INFO_TYPE
*codec_type
,
1423 [in, out] WORD
*codec_info_cnt
,
1424 [out, size_is( *codec_info_cnt
)] BYTE *codec_info
);
1429 uuid(15cc68e3
-27cc
-4ecd
-b222
-3f5d02d80bd5
),
1430 pointer_default(unique),
1433 interface IWMHeaderInfo3
: IWMHeaderInfo2
1435 HRESULT GetAttributeCountEx
(
1436 [in] WORD stream_num
,
1437 [out] WORD
*attributes
);
1439 HRESULT GetAttributeIndices
(
1440 [in] WORD stream_num
,
1442 [in] WORD
*lang_index
,
1443 [out, size_is( *count
)] WORD
*indices
,
1444 [in, out] WORD
*count
);
1446 HRESULT GetAttributeByIndexEx
(
1447 [in] WORD stream_num
,
1449 [out, size_is( *name_len
)] LPWSTR name
,
1450 [in, out] WORD
*name_len
,
1451 [out] WMT_ATTR_DATATYPE
*type
,
1452 [out] WORD
*lang_index
,
1453 [out, size_is( *data_len
)] BYTE *value
,
1454 [in, out] DWORD
*data_len
);
1456 HRESULT ModifyAttribute
(
1457 [in] WORD stream_num
,
1459 [in] WMT_ATTR_DATATYPE type
,
1460 [in] WORD lang_index
,
1461 [in, size_is( length
)] const BYTE *value
,
1462 [in] DWORD length
);
1464 HRESULT AddAttribute
(
1465 [in] WORD stream_num
,
1468 [in] WMT_ATTR_DATATYPE type
,
1469 [in] WORD lang_index
,
1470 [in, size_is( length
)] const BYTE *value
,
1471 [in] DWORD length
);
1473 HRESULT DeleteAttribute
(
1474 [in] WORD stream_num
,
1477 HRESULT AddCodecInfo
(
1478 [in] LPCWSTR_WMSDK_TYPE_SAFE name
,
1479 [in] LPCWSTR_WMSDK_TYPE_SAFE description
,
1480 [in] WMT_CODEC_INFO_TYPE codec_type
,
1481 [in] WORD codec_info_cnt
,
1482 [in, size_is( codec_info_cnt
)] BYTE *codec_info
);
1487 uuid(96406bec
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1488 pointer_default(unique),
1491 interface IWMReaderNetworkConfig
: IUnknown
1493 HRESULT GetBufferingTime
([out] QWORD
*buffering_time
);
1494 HRESULT SetBufferingTime
([in] QWORD buffering_time
);
1496 HRESULT GetUDPPortRanges
(
1497 [out, size_is( *ranges
)] WM_PORT_NUMBER_RANGE
*array
,
1498 [in, out] DWORD
*ranges
);
1500 HRESULT SetUDPPortRanges
(
1501 [in, size_is( ranges
)] WM_PORT_NUMBER_RANGE
*array
,
1504 HRESULT GetProxySettings
(
1505 [in] const WCHAR
*protocol
,
1506 [out] WMT_PROXY_SETTINGS
*proxy
);
1508 HRESULT SetProxySettings
(
1509 [in] LPCWSTR protocol
,
1510 [in] WMT_PROXY_SETTINGS proxy
);
1512 HRESULT GetProxyHostName
(
1513 [in] const WCHAR
*protocol
,
1514 [out, size_is( *size
)] WCHAR
*hostname
,
1515 [in, out] DWORD
*size
);
1517 HRESULT SetProxyHostName
(
1518 [in] const WCHAR
*protocol
,
1519 [in] const WCHAR
*hostname
);
1521 HRESULT GetProxyPort
(
1522 [in] const WCHAR
*protocol
,
1525 HRESULT SetProxyPort
(
1526 [in] const WCHAR
*protocol
,
1529 HRESULT GetProxyExceptionList
(
1530 [in] const WCHAR
*protocol
,
1531 [out, size_is( *count
)] WCHAR
*exceptions
,
1532 [in, out] DWORD
*count
);
1534 HRESULT SetProxyExceptionList
(
1535 [in] const WCHAR
*protocol
,
1536 [in] const WCHAR
*exceptions
);
1538 HRESULT GetProxyBypassForLocal
(
1539 [in] const WCHAR
*protocol
,
1540 [out] BOOL
*bypass
);
1542 HRESULT SetProxyBypassForLocal
(
1543 [in] const WCHAR
*protocol
,
1546 HRESULT GetForceRerunAutoProxyDetection
([out] BOOL
*detection
);
1547 HRESULT SetForceRerunAutoProxyDetection
([in] BOOL detection
);
1549 HRESULT GetEnableMulticast
([out] BOOL
*multicast
);
1550 HRESULT SetEnableMulticast
([in] BOOL multicast
);
1552 HRESULT GetEnableHTTP
([out] BOOL
*enable
);
1553 HRESULT SetEnableHTTP
([in] BOOL enable
);
1555 HRESULT GetEnableUDP
([out] BOOL
*enable
);
1556 HRESULT SetEnableUDP
([in] BOOL enable
);
1558 HRESULT GetEnableTCP
([out] BOOL
*enable
);
1559 HRESULT SetEnableTCP
([in] BOOL enable
);
1561 HRESULT ResetProtocolRollover
();
1563 HRESULT GetConnectionBandwidth
([out] DWORD
*bandwidth
);
1564 HRESULT SetConnectionBandwidth
([in] DWORD bandwidth
);
1566 HRESULT GetNumProtocolsSupported
([out] DWORD
*protocols
);
1568 HRESULT GetSupportedProtocolName
(
1569 [in] DWORD protocol_num
,
1570 [out, size_is( *size
)] WCHAR
*protocol
,
1571 [in, out] DWORD
*size
);
1573 HRESULT AddLoggingUrl
([in] const WCHAR
*url
);
1575 HRESULT GetLoggingUrl
(
1577 [out, size_is( *size
)] WCHAR
*url
,
1578 [in, out] DWORD
*size
);
1580 HRESULT GetLoggingUrlCount
([out] DWORD
*count
);
1582 HRESULT ResetLoggingUrlList
();
1587 uuid(d979a853
-042b
-4050-8387-c939db22013f
),
1588 pointer_default(unique),
1591 interface IWMReaderNetworkConfig2
: IWMReaderNetworkConfig
1593 HRESULT GetEnableContentCaching
([out] BOOL
*enable
);
1594 HRESULT SetEnableContentCaching
([in] BOOL enable
);
1596 HRESULT GetEnableFastCache
([out] BOOL
*enable
);
1597 HRESULT SetEnableFastCache
([in] BOOL enable
);
1599 HRESULT GetAcceleratedStreamingDuration
([out] QWORD
*duration
);
1600 HRESULT SetAcceleratedStreamingDuration
([in] QWORD duration
);
1602 HRESULT GetAutoReconnectLimit
([out] DWORD
*limit
);
1603 HRESULT SetAutoReconnectLimit
([in] DWORD limit
);
1605 HRESULT GetEnableResends
([out] BOOL
*enable
);
1606 HRESULT SetEnableResends
([in] BOOL enable
);
1608 HRESULT GetEnableThinning
([out] BOOL
*enable
);
1609 HRESULT SetEnableThinning
([in] BOOL enable
);
1611 HRESULT GetMaxNetPacketSize
([out] DWORD
*packet_size
);
1616 uuid(96406bed
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1617 pointer_default(unique),
1621 interface IWMReaderStreamClock
: IUnknown
1623 HRESULT GetTime
([in] QWORD
*now
);
1625 HRESULT SetTimer
([in] QWORD when
,
1629 HRESULT KillTimer
([in] DWORD
id);
1634 uuid(cdfb97ab
-188f
-40b3
-b643
-5b7903975c59
),
1635 pointer_default(unique),
1638 interface IWMPacketSize
: IUnknown
1640 HRESULT GetMaxPacketSize
([out] DWORD
*size
);
1641 HRESULT SetMaxPacketSize
([in] DWORD size
);
1646 uuid(8bfc2b9e
-b646
-4233-a877
-1c6a079669dc
),
1647 pointer_default(unique),
1650 interface IWMPacketSize2
: IWMPacketSize
1652 HRESULT GetMinPacketSize
([out] DWORD
*size
);
1653 HRESULT SetMinPacketSize
([in] DWORD size
);
1658 uuid(d2827540
-3ee7
-432c
-b14c
-dc17f085d3b3
),
1659 pointer_default(unique),
1662 interface IWMDRMReader
: IUnknown
1664 HRESULT AcquireLicense
([in] DWORD flags
);
1665 HRESULT CancelLicenseAcquisition
();
1667 HRESULT Individualize
([in] DWORD flags
);
1668 HRESULT CancelIndividualization
();
1670 HRESULT MonitorLicenseAcquisition
();
1671 HRESULT CancelMonitorLicenseAcquisition
();
1673 HRESULT SetDRMProperty
(
1674 [in] const WCHAR
*name
,
1675 [in] WMT_ATTR_DATATYPE type
,
1676 [in, size_is( length
)] const BYTE *value
,
1679 HRESULT GetDRMProperty
(
1680 [in] const WCHAR
*name
,
1681 [out] WMT_ATTR_DATATYPE
*type
,
1682 [out, size_is( *length
)] BYTE *value
,
1683 [in, out] WORD
*length
);
1688 uuid(befe7a75
-9f1d
-4075-b9d9
-a3c37bda49a0
),
1689 pointer_default(unique),
1692 interface IWMDRMReader2
: IWMDRMReader
1694 HRESULT SetEvaluateOutputLevelLicenses
([in] BOOL evaluate
);
1695 HRESULT GetPlayOutputLevels
(
1696 [out, size_is( *length
)] DRM_PLAY_OPL
*play
,
1697 [in, out] DWORD
*length
,
1698 [out] DWORD
*level
);
1700 HRESULT GetCopyOutputLevels
(
1701 [out, size_is( *length
)] DRM_COPY_OPL
*copy
,
1702 [in, out] DWORD
*length
,
1703 [out] DWORD
*level
);
1705 HRESULT TryNextLicense
();
1710 uuid(e08672de
-f1e7
-4ff4
-a0a3
-fc4b08e4caf8
),
1711 pointer_default(unique),
1714 interface IWMDRMReader3
: IWMDRMReader2
1716 HRESULT GetInclusionList
(
1718 [out] DWORD
*count
);
1723 uuid(bddc4d08
-944d
-4d52
-a612
-46c3fda07dd4
),
1724 pointer_default( unique ),
1727 interface IWMReaderAccelerator
: IUnknown
1729 HRESULT GetCodecInterface
(
1732 [out] void **codec
);
1736 [in] WM_MEDIA_TYPE
*subtype
);
1741 uuid(f369e2f0
-e081
-4fe6
-8450-b810b2f410d1
),
1742 pointer_default(unique),
1745 interface IWMReaderTimecode
: IUnknown
1747 HRESULT GetTimecodeRangeCount
(
1751 HRESULT GetTimecodeRangeBounds
(
1754 [out] DWORD
*start_timecode
,
1755 [out] DWORD
*end_timecode
);
1760 uuid(fdbe5592
-81a1
-41ea
-93bd
-735cad1adc05
),
1761 pointer_default(unique),
1764 interface IWMReaderTypeNegotiation
: IUnknown
1766 HRESULT TryOutputProps
(
1768 [in] IWMOutputMediaProps
*props
);
1773 uuid(df683f00
-2d49
-4d8e
-92b7
-fb19f6a0dc57
),
1774 pointer_default(unique),
1777 interface IWMLanguageList
: IUnknown
1779 HRESULT GetLanguageCount
(
1782 HRESULT GetLanguageDetails
(
1784 [out, size_is( *length
)] WCHAR
*language
,
1785 [in, out] WORD
*length
);
1787 HRESULT AddLanguageByRFC1766String
(
1788 [in] LPCWSTR_WMSDK_TYPE_SAFE language
,
1794 uuid(f28c0300
-9baa
-4477-a846
-1744d9cbf533
),
1795 pointer_default(unique),
1798 interface IWMReaderPlaylistBurn
: IUnknown
1800 HRESULT InitPlaylistBurn
(
1802 [in] LPCWSTR_WMSDK_TYPE_SAFE
*filenames
,
1803 [in] IWMStatusCallback
*callback,
1804 [in] void *context
);
1806 HRESULT GetInitResults
(
1808 [out] HRESULT *stat
);
1812 HRESULT EndPlaylistBurn
([in] HRESULT result
);
1817 uuid(72995a79
-5090-42a4
-9c8c
-d9d0b6d34be5
),
1818 pointer_default(unique),
1821 interface IWMPropertyVault
: IUnknown
1823 HRESULT GetPropertyCount
([in] DWORD
*count
);
1825 HRESULT GetPropertyByName
(
1826 [in] const WCHAR
*name
,
1827 [out] WMT_ATTR_DATATYPE
*type
,
1828 [out, size_is( *size
)] BYTE *value
,
1829 [in, out] DWORD
*size
);
1831 HRESULT SetProperty
(
1832 [in] const WCHAR
*name
,
1833 [in] WMT_ATTR_DATATYPE type
,
1837 HRESULT GetPropertyByIndex
(
1839 [out, size_is( *pdwNameLen
)] WCHAR
*name
,
1840 [in, out] DWORD
*length
,
1841 [out] WMT_ATTR_DATATYPE
*type
,
1842 [out, size_is( *size
)] BYTE *value
,
1843 [in, out] DWORD
*size
);
1845 HRESULT CopyPropertiesFrom
([in] IWMPropertyVault
*vault
);
1852 uuid(fc54a285
-38c4
-45b5
-aa23
-85b9f7cb424b
),
1853 pointer_default(unique),
1856 interface IWMWriterPreprocess
: IUnknown
1858 HRESULT GetMaxPreprocessingPasses
(
1861 [out] DWORD
*passes
);
1863 HRESULT SetNumPreprocessingPasses
(
1868 HRESULT BeginPreprocessingPass
(
1872 HRESULT PreprocessSample
(
1874 [in] QWORD sample_time
,
1876 [in] INSSBuffer
*sample
);
1878 HRESULT EndPreprocessingPass
(
1885 uuid(05e5ac9f
-3fb6
-4508-bb43
-a4067ba1ebe8
),
1886 pointer_default(unique),
1889 interface IWMLicenseBackup
: IUnknown
1891 HRESULT BackupLicenses
(
1893 [in] IWMStatusCallback
*pCallback
);
1895 HRESULT CancelLicenseBackup
();
1900 uuid(c70b6334
-a22e
-4efb
-a245
-15e65a004a13
),
1901 pointer_default(unique),
1904 interface IWMLicenseRestore
: IUnknown
1906 HRESULT RestoreLicenses
(
1908 [in] IWMStatusCallback
*pCallback
);
1910 HRESULT CancelLicenseRestore
();
1916 uuid(6816dad3
-2b4b
-4c8e
-8149
-874c3483a753
),
1918 interface IWMIStreamProps
: IUnknown
1920 HRESULT GetProperty
(const WCHAR
*name
, WMT_ATTR_DATATYPE
*type
, BYTE *value
, DWORD
*size
);
1926 uuid(342e0eb7
-e651
-450c
-975b
-2ace2c90c48e
),
1928 interface IWMCredentialCallback
: IUnknown
1930 HRESULT AcquireCredentials
(WCHAR
*realm
, WCHAR
*site
, WCHAR
*username
, DWORD username_size
,
1931 WCHAR
*password
, DWORD password_size
, HRESULT hr
, DWORD
*flags
);
1934 cpp_quote
("HRESULT WINAPI WMCheckURLExtension(LPCWSTR);")
1935 cpp_quote
("HRESULT WINAPI WMCheckURLScheme(LPCWSTR);")
1936 cpp_quote
("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
1937 cpp_quote
("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
1938 cpp_quote
("HRESULT WINAPI WMCreateSyncReader(IUnknown*,DWORD,IWMSyncReader**);")
1939 cpp_quote
("HRESULT WINAPI WMCreateEditor(IWMMetadataEditor**);")
1940 cpp_quote
("HRESULT WINAPI WMCreateBackupRestorer(IUnknown*,IWMLicenseBackup**);")
1941 cpp_quote
("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
1942 cpp_quote
("HRESULT WINAPI WMIsContentProtected(const WCHAR*, BOOL*);")
1945 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1946 cpp_quote
("EXTERN_GUID(WMMEDIATYPE_Video, 0x73646976,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1947 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB1, 0xe436eb78,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1948 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB4, 0xe436eb79,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1949 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB8, 0xe436eb7a,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1950 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB565, 0xe436eb7b,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1951 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB555, 0xe436eb7c,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1952 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB24, 0xe436eb7d,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1953 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB32, 0xe436eb7e,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1954 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_I420, 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1955 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_IYUV, 0x56555949,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1956 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YV12, 0x32315659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1957 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YUY2, 0x32595559,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1958 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_P422, 0x32323450,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1959 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_UYVY, 0x59565955,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1960 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YVYU, 0x55595659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1961 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YVU9, 0x39555659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1962 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_VIDEOIMAGE, 0x1d4a45f2,0xe5f6,0x4b44,0x83,0x88,0xf0,0xae,0x5c,0x0e,0x0c,0x37);")
1963 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MP43, 0x3334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1964 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MP4S, 0x5334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1965 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_M4S2, 0x3253344d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1966 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMV1, 0x31564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1967 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMV2, 0x32564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1968 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MSS1, 0x3153534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1969 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MPEG2_VIDEO, 0xe06d8026,0xdb46,0x11cf,0xb4,0xd1,0x00,0x80,0x5f,0x6c,0xbb,0xea);")
1970 cpp_quote
("EXTERN_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1971 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_PCM, 0x00000001,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1972 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_DRM, 0x00000009,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1973 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMAudioV9, 0x00000162,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1974 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMAudio_Lossless, 0x00000163,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1975 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MSS2, 0x3253534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1976 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMSP1, 0x0000000a,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1977 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMSP2, 0x0000000b,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1978 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMV3, 0x33564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1979 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMVP, 0x50564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1980 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WVP2, 0x32505657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1981 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMVA, 0x41564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1982 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WVC1, 0x31435657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")