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
;
84 typedef enum WMT_ATTR_DATATYPE
95 typedef enum WMT_STATUS
99 WMT_BUFFERING_START
= 2,
100 WMT_BUFFERING_STOP
= 3,
103 WMT_END_OF_SEGMENT
= 5,
104 WMT_END_OF_STREAMING
= 6,
108 WMT_MISSING_CODEC
= 10,
114 WMT_INDEX_PROGRESS
= 16,
115 WMT_SAVEAS_START
= 17,
116 WMT_SAVEAS_STOP
= 18,
117 WMT_NEW_SOURCEFLAGS
= 19,
118 WMT_NEW_METADATA
= 20,
119 WMT_BACKUPRESTORE_BEGIN
= 21,
120 WMT_SOURCE_SWITCH
= 22,
121 WMT_ACQUIRE_LICENSE
= 23,
122 WMT_INDIVIDUALIZE
= 24,
123 WMT_NEEDS_INDIVIDUALIZATION
= 25,
124 WMT_NO_RIGHTS_EX
= 26,
125 WMT_BACKUPRESTORE_END
= 27,
126 WMT_BACKUPRESTORE_CONNECTING
= 28,
127 WMT_BACKUPRESTORE_DISCONNECTING
= 29,
128 WMT_ERROR_WITHURL
= 30,
129 WMT_RESTRICTED_LICENSE
= 31,
130 WMT_CLIENT_CONNECT
= 32,
131 WMT_CLIENT_DISCONNECT
= 33,
132 WMT_NATIVE_OUTPUT_PROPS_CHANGED
= 34,
133 WMT_RECONNECT_START
= 35,
134 WMT_RECONNECT_END
= 36,
135 WMT_CLIENT_CONNECT_EX
= 37,
136 WMT_CLIENT_DISCONNECT_EX
= 38,
137 WMT_SET_FEC_SPAN
= 39,
138 WMT_PREROLL_READY
= 40,
139 WMT_PREROLL_COMPLETE
= 41,
140 WMT_CLIENT_PROPERTIES
= 42,
141 WMT_LICENSEURL_SIGNATURE_STATE
= 43,
142 WMT_INIT_PLAYLIST_BURN
= 44,
143 WMT_TRANSCRYPTOR_INIT
= 45,
144 WMT_TRANSCRYPTOR_SEEKED
= 46,
145 WMT_TRANSCRYPTOR_READ
= 47,
146 WMT_TRANSCRYPTOR_CLOSED
= 48,
147 WMT_PROXIMITY_RESULT
= 49,
148 WMT_PROXIMITY_COMPLETED
= 50,
149 WMT_CONTENT_ENABLER
= 51
152 typedef enum WMT_STREAM_SELECTION
155 WMT_CLEANPOINT_ONLY
= 1,
157 } WMT_STREAM_SELECTION
;
159 typedef enum WMT_VERSION
161 WMT_VER_4_0
= 0x00040000,
162 WMT_VER_7_0
= 0x00070000,
163 WMT_VER_8_0
= 0x00080000,
164 WMT_VER_9_0
= 0x00090000
167 typedef enum WMT_PLAY_MODE
169 WMT_PLAY_MODE_AUTOSELECT
,
171 WMT_PLAY_MODE_DOWNLOAD
,
172 WMT_PLAY_MODE_STREAMING
175 typedef enum tagWMT_OFFSET_FORMAT
177 WMT_OFFSET_FORMAT_100NS
,
178 WMT_OFFSET_FORMAT_FRAME_NUMBERS
,
179 WMT_OFFSET_FORMAT_PLAYLIST_OFFSET
,
180 WMT_OFFSET_FORMAT_TIMECODE
,
181 WMT_OFFSET_FORMAT_100NS_APPROXIMATE
184 typedef enum WMT_CODEC_INFO_TYPE
186 WMT_CODECINFO_AUDIO
= 0,
187 WMT_CODECINFO_VIDEO
= 1,
188 WMT_CODECINFO_UNKNOWN
= 0xFFFFFFFF,
189 } WMT_CODEC_INFO_TYPE
;
191 typedef enum WMT_PROXY_SETTINGS
193 WMT_PROXY_SETTING_NONE
= 0,
194 WMT_PROXY_SETTING_MANUAL
= 1,
195 WMT_PROXY_SETTING_AUTO
= 2,
196 WMT_PROXY_SETTING_BROWSER
= 3,
197 WMT_PROXY_SETTING_MAX
198 } WMT_PROXY_SETTINGS
;
200 typedef enum tagWMT_STORAGE_FORMAT
202 WMT_Storage_Format_MP3
= 0,
203 WMT_Storage_Format_V1
= 1
204 } WMT_STORAGE_FORMAT
;
206 #include
<pshpack2.h
>
207 typedef struct _WMStreamPrioritizationRecord
211 } WM_STREAM_PRIORITY_RECORD
;
214 typedef struct _WM_PORT_NUMBER_RANGE
218 } WM_PORT_NUMBER_RANGE
;
220 typedef LPCWSTR LPCWSTR_WMSDK_TYPE_SAFE
;
224 uuid(6d7cdc70
-9888-11d3
-8edc
-00c04f6109cf
),
225 pointer_default(unique),
228 interface IWMStatusCallback
: IUnknown
231 [in] WMT_STATUS Status
,
233 [in] WMT_ATTR_DATATYPE dwType
,
235 [in] void *pvContext
);
240 uuid(96406bd8
-2b2b
-11d3
-b36b
-00c04f6108ff
),
241 pointer_default(unique),
244 interface IWMReaderCallback
: IWMStatusCallback
247 [in] DWORD dwOutputNum
,
248 [in] QWORD cnsSampleTime
,
249 [in] QWORD cnsSampleDuration
,
251 [in] INSSBuffer
*pSample
,
252 [in] void *pvContext
);
257 uuid(96406Bdd
-2b2b
-11d3
-b36b
-00c04f6108ff
),
258 pointer_default(unique),
261 interface IWMStreamList
: IUnknown
264 [out, size_is(*pcStreams
)] WORD
*pwStreamNumArray
,
265 [in, out] WORD
*pcStreams
);
267 HRESULT AddStream
([in] WORD wStreamNum
);
268 HRESULT RemoveStream
([in] WORD wStreamNum
);
273 uuid(96406Bde
-2b2b
-11d3
-b36b
-00c04f6108ff
),
274 pointer_default(unique),
277 interface IWMMutualExclusion
: IWMStreamList
279 HRESULT GetType
([out] GUID
*pguidType
);
280 HRESULT SetType
([in] REFGUID guidType
);
285 uuid(ad694af1
-f8d9
-42f8
-bc47
-70311b0c4f9e
),
286 pointer_default(unique),
289 interface IWMBandwidthSharing
: IWMStreamList
291 HRESULT GetType
([out] GUID
*guid
);
292 HRESULT SetType
([in] REFGUID guid
);
294 HRESULT GetBandwidth
(
295 [out] DWORD
*bitrate
,
296 [out] DWORD
*buffer
);
298 HRESULT SetBandwidth
(
305 uuid(8c1c6090
-f9a8
-4748-8ec3
-dd1108ba1e77
),
306 pointer_default(unique),
309 interface IWMStreamPrioritization
: IUnknown
311 HRESULT GetPriorityRecords
(
312 [out] WM_STREAM_PRIORITY_RECORD
*array
,
313 [in, out] WORD
*records
);
315 HRESULT SetPriorityRecords
(
316 [in] WM_STREAM_PRIORITY_RECORD
*array
,
322 uuid(96406Bdc
-2b2b
-11d3
-b36b
-00c04f6108ff
),
323 pointer_default(unique),
326 interface IWMStreamConfig
: IUnknown
328 HRESULT GetStreamType
([out] GUID
*pguidStreamType
);
329 HRESULT GetStreamNumber
([out] WORD
*pwStreamNum
);
330 HRESULT SetStreamNumber
([in] WORD wStreamNum
);
332 HRESULT GetStreamName
(
333 [out, size_is(*pcchStreamName
)] WCHAR
*pwszStreamName
,
334 [in, out] WORD
*pcchStreamName
);
336 HRESULT SetStreamName
([in] LPCWSTR_WMSDK_TYPE_SAFE pwszStreamName
);
338 HRESULT GetConnectionName
(
339 [out, size_is(*pcchInputName
)] WCHAR
*pwszInputName
,
340 [in, out] WORD
*pcchInputName
);
342 HRESULT SetConnectionName
([in] LPCWSTR_WMSDK_TYPE_SAFE pwszInputName
);
343 HRESULT GetBitrate
([out] DWORD
*pdwBitrate
);
344 HRESULT SetBitrate
([in] DWORD pdwBitrate
);
345 HRESULT GetBufferWindow
([out] DWORD
*pmsBufferWindow
);
346 HRESULT SetBufferWindow
([in] DWORD msBufferWindow
);
351 uuid(96406bdb
-2b2b
-11d3
-b36b
-00c04f6108ff
),
352 pointer_default(unique),
355 interface IWMProfile
: IUnknown
358 [out] WMT_VERSION
*pdwVersion
);
361 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
362 [in, out] DWORD
*pcchName
);
365 [in] const WCHAR
*pwszName
);
367 HRESULT GetDescription
(
368 [out, size_is(*pcchDescription
)] WCHAR
*pwszDescription
,
369 [in, out] DWORD
*pcchDescription
);
371 HRESULT SetDescription
(
372 [in] const WCHAR
*pwszDescription
);
374 HRESULT GetStreamCount
(
375 [out] DWORD
*pcStreams
);
378 [in] DWORD dwStreamIndex
,
379 [out] IWMStreamConfig
**ppConfig
);
381 HRESULT GetStreamByNumber
(
382 [in] WORD wStreamNum
,
383 [out] IWMStreamConfig
**ppConfig
);
385 HRESULT RemoveStream
(
386 [in] IWMStreamConfig
*pConfig
);
388 HRESULT RemoveStreamByNumber
(
389 [in] WORD wStreamNum
);
392 [in] IWMStreamConfig
*pConfig
);
394 HRESULT ReconfigStream
(
395 [in] IWMStreamConfig
*pConfig
);
397 HRESULT CreateNewStream
(
398 [in] REFGUID guidStreamType
,
399 [out] IWMStreamConfig
**ppConfig
);
401 HRESULT GetMutualExclusionCount
(
404 HRESULT GetMutualExclusion
(
405 [in] DWORD dwMEIndex
,
406 [out] IWMMutualExclusion
**ppME
);
408 HRESULT RemoveMutualExclusion
(
409 [in] IWMMutualExclusion
*pME
);
411 HRESULT AddMutualExclusion
(
412 [in] IWMMutualExclusion
*pME
);
414 HRESULT CreateNewMutualExclusion
(
415 [out] IWMMutualExclusion
**ppME
);
420 uuid(07e72d33
-d94e
-4be7
-8843-60ae5ff7e5f5
),
421 pointer_default(unique),
424 interface IWMProfile2
: IWMProfile
426 HRESULT GetProfileID
([out] GUID
*guid
);
431 uuid(00ef96cc
-a461
-4546-8bcd
-c9a28f0e06f5
),
432 pointer_default(unique),
435 interface IWMProfile3
: IWMProfile2
437 HRESULT GetStorageFormat
([out] WMT_STORAGE_FORMAT
*storage
);
438 HRESULT SetStorageFormat
([in] WMT_STORAGE_FORMAT storage
);
440 HRESULT GetBandwidthSharingCount
([out] DWORD
*count
);
442 HRESULT GetBandwidthSharing
(
444 [out] IWMBandwidthSharing
**bandwidth
);
446 HRESULT RemoveBandwidthSharing
([in] IWMBandwidthSharing
*bandwidth
);
448 HRESULT AddBandwidthSharing
([in] IWMBandwidthSharing
*bandwidth
);
450 HRESULT CreateNewBandwidthSharing
([out] IWMBandwidthSharing
**bandwidth
);
452 HRESULT GetStreamPrioritization
([out] IWMStreamPrioritization
**stream
);
454 HRESULT SetStreamPrioritization
([in] IWMStreamPrioritization
*stream
);
456 HRESULT RemoveStreamPrioritization
();
458 HRESULT CreateNewStreamPrioritization
([out] IWMStreamPrioritization
**stream
);
460 HRESULT GetExpectedPacketCount
(
462 [out] QWORD
*packets
);
467 uuid(d16679f2
-6ca0
-472d
-8d31
-2f5d55aee155
),
468 pointer_default(unique),
471 interface IWMProfileManager
: IUnknown
473 HRESULT CreateEmptyProfile
(
474 [in] WMT_VERSION dwVersion
,
475 [out] IWMProfile
**ppProfile
);
477 HRESULT LoadProfileByID
(
478 [in] REFGUID guidProfile
,
479 [out] IWMProfile
**ppProfile
);
481 HRESULT LoadProfileByData
(
482 [in] const WCHAR
*pwszProfile
,
483 [out] IWMProfile
**ppProfile
);
486 [in] IWMProfile
*pIWMProfile
,
487 [in] WCHAR
*pwszProfile
,
488 [in, out] DWORD
*pdwLength
);
490 HRESULT GetSystemProfileCount
(
491 [out] DWORD
*pcProfiles
);
493 HRESULT LoadSystemProfile
(
494 [in] DWORD dwProfileIndex
,
495 [out] IWMProfile
**ppProfile
);
500 uuid(7a924e51
-73c1
-494d
-8019-23d37ed9b89a
),
501 pointer_default(unique),
504 interface IWMProfileManager2
: IWMProfileManager
506 HRESULT GetSystemProfileVersion
(WMT_VERSION
*version);
507 HRESULT SetSystemProfileVersion
(WMT_VERSION
version);
510 cpp_quote
("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
514 uuid(a970f41e
-34de
-4a98
-b3ba
-e4b3ca7528f0
),
515 pointer_default(unique),
518 interface IWMCodecInfo
: IUnknown
520 HRESULT GetCodecInfoCount
(
524 HRESULT GetCodecFormatCount
(
526 [in] DWORD codecindex
,
527 [out] DWORD
*formatcount
);
529 HRESULT GetCodecFormat
(
531 [in] DWORD codecindex
,
532 [in] DWORD formatindex
,
533 [out] IWMStreamConfig
**streamconfig
);
538 uuid(aa65e273
-b686
-4056-91ec
-dd768d4df710
),
539 pointer_default(unique),
542 interface IWMCodecInfo2
: IWMCodecInfo
544 HRESULT GetCodecName
(
546 [in] DWORD codecindex
,
547 [out, size_is(*namesize
)] WCHAR
*name
,
548 [in, out] DWORD
*namesize
);
550 HRESULT GetCodecFormatDesc
(
552 [in] DWORD codecindex
,
553 [in] DWORD formatindex
,
554 [out] IWMStreamConfig
**streamconfig
,
555 [out, size_is(*descrsize
)] WCHAR
*description
,
556 [in, out] DWORD
*descrsize
);
561 uuid(7e51f487
-4d93
-4f98
-8ab4
-27d0565adc51
),
562 pointer_default(unique),
565 interface IWMCodecInfo3
: IWMCodecInfo2
567 HRESULT GetCodecFormatProp
(
569 [in] DWORD codecindex
,
570 [in] DWORD formatindex
,
571 [in] const WCHAR
*name
,
572 [out] WMT_ATTR_DATATYPE
*type
,
573 [out, size_is(*size
)] BYTE *value
,
574 [in, out] DWORD
*size
);
576 HRESULT GetCodecProp
(
578 [in] DWORD codecindex
,
579 [in] const WCHAR
*name
,
580 [out] WMT_ATTR_DATATYPE
*type
,
581 [out, size_is(*size
)] BYTE *value
,
582 [in, out] DWORD
*size
);
584 HRESULT SetCodecEnumerationSetting
(
586 [in] DWORD codecindex
,
587 [in] const WCHAR
*name
,
588 [in] WMT_ATTR_DATATYPE type
,
589 [in, size_is(size
)] const BYTE *value
,
592 HRESULT GetCodecEnumerationSetting
(
594 [in] DWORD codecindex
,
595 [in] const WCHAR
*name
,
596 [out] WMT_ATTR_DATATYPE
*type
,
597 [out, size_is(*size
)] BYTE *value
,
598 [in, out] DWORD
*size
);
601 cpp_quote
("static const WCHAR g_wszNumPasses[] = {'_','P','A','S','S','E','S','U','S','E','D',0};")
602 cpp_quote
("static const WCHAR g_wszVBREnabled[] = {'_','V','B','R','E','N','A','B','L','E','D',0};")
606 uuid(96406bce
-2b2b
-11d3
-b36b
-00c04f6108ff
),
607 pointer_default(unique),
610 interface IWMMediaProps
: IUnknown
613 [out] GUID
*pguidType
);
615 HRESULT GetMediaType
(
616 [out] WM_MEDIA_TYPE
*pType
,
617 [in, out] DWORD
*pcbType
);
619 HRESULT SetMediaType
(
620 [in] WM_MEDIA_TYPE
*pType
);
625 uuid(96406bd7
-2b2b
-11d3
-b36b
-00c04f6108ff
),
626 pointer_default(unique),
629 interface IWMOutputMediaProps
: IWMMediaProps
631 HRESULT GetStreamGroupName
(
632 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
633 [in, out] WORD
*pcchName
);
635 HRESULT GetConnectionName
(
636 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
637 [in, out] WORD
*pcchName
);
642 uuid(96406bd9
-2b2b
-11d3
-b36b
-00c04f6108ff
),
643 pointer_default(unique),
646 interface IWMMetadataEditor
: IUnknown
649 [in] const WCHAR
*pwszFilename
);
658 uuid(96406bd6
-2b2b
-11d3
-b36b
-00c04f6108ff
),
659 pointer_default(unique),
662 interface IWMReader
: IUnknown
665 [in] const WCHAR
*pwszURL
,
666 [in] IWMReaderCallback
*pCallback
,
667 [in] void *pvContext
);
671 HRESULT GetOutputCount
(
672 [out] DWORD
*pcOutputs
);
674 HRESULT GetOutputProps
(
675 [in] DWORD dwOutputNum
,
676 [out] IWMOutputMediaProps
**ppOutput
);
678 HRESULT SetOutputProps
(
679 [in] DWORD dwOutputNum
,
680 [in] IWMOutputMediaProps
*pOutput
);
682 HRESULT GetOutputFormatCount
(
683 [in] DWORD dwOutputNumber
,
684 [out] DWORD
*pcFormats
);
686 HRESULT GetOutputFormat
(
687 [in] DWORD dwOutputNumber
,
688 [in] DWORD dwFormatNumber
,
689 [out] IWMOutputMediaProps
** ppProps
);
693 [in] QWORD cnsDuration
,
695 [in] void *pvContext
);
706 uuid(e5b7ca9a
-0f1c
-4f66
-9002-74ec50d8b304
),
707 pointer_default(unique),
710 interface IWMPlayerHook
: IUnknown
717 uuid(96406bea
-2b2b
-11d3
-b36b
-00c04f6108ff
),
718 pointer_default(unique),
721 interface IWMReaderAdvanced
: IUnknown
723 HRESULT SetUserProvidedClock
(
724 [in] BOOL fUserClock
);
726 HRESULT GetUserProvidedClock
(
727 [out] BOOL
*pfUserClock
);
732 HRESULT SetManualStreamSelection
(
733 [in] BOOL fSelection
);
735 HRESULT GetManualStreamSelection
(
736 [out] BOOL
*pfSelection
);
738 HRESULT SetStreamsSelected
(
739 [in] WORD cStreamCount
,
740 [in] WORD
*pwStreamNumbers
,
741 [in] WMT_STREAM_SELECTION
*pSelections
);
743 HRESULT GetStreamSelected
(
744 [in] WORD wStreamNum
,
745 [out] WMT_STREAM_SELECTION
*pSelection
);
747 HRESULT SetReceiveSelectionCallbacks
(
748 [in] BOOL fGetCallbacks
);
750 HRESULT GetReceiveSelectionCallbacks
(
751 [out] BOOL
*pfGetCallbacks
);
753 HRESULT SetReceiveStreamSamples
(
754 [in] WORD wStreamNum
,
755 [in] BOOL fReceiveStreamSamples
);
757 HRESULT GetReceiveStreamSamples
(
758 [in] WORD wStreamNum
,
759 [out] BOOL
*pfReceiveStreamSamples
);
761 HRESULT SetAllocateForOutput
(
762 [in] DWORD dwOutputNum
,
763 [in] BOOL fAllocate
);
765 HRESULT GetAllocateForOutput
(
766 [in] DWORD dwOutputNum
,
767 [out] BOOL
*pfAllocate
);
769 HRESULT SetAllocateForStream
(
770 [in] WORD wStreamNum
,
771 [in] BOOL fAllocate
);
773 HRESULT GetAllocateForStream
(
774 [in] WORD dwStreamNum
,
775 [out] BOOL
*pfAllocate
);
777 HRESULT GetStatistics
(
778 [in, out] WM_READER_STATISTICS
*pStatistics
);
780 HRESULT SetClientInfo
(
781 [in] WM_READER_CLIENTINFO
*pClientInfo
);
783 HRESULT GetMaxOutputSampleSize
(
785 [out] DWORD
*pcbMax
);
787 HRESULT GetMaxStreamSampleSize
(
789 [out] DWORD
*pcbMax
);
791 HRESULT NotifyLateDelivery
(
797 uuid(ae14a945
-b90c
-4d0d
-9127-80d665f7d73e
),
798 pointer_default(unique),
801 interface IWMReaderAdvanced2
: IWMReaderAdvanced
804 [in] WMT_PLAY_MODE Mode
);
807 [out] WMT_PLAY_MODE
*pMode
);
809 HRESULT GetBufferProgress
(
810 [out] DWORD
*pdwPercent
,
811 [out] QWORD
*pcnsBuffering
);
813 HRESULT GetDownloadProgress
(
814 [out] DWORD
*pdwPercent
,
815 [out] QWORD
*pqwBytesDownloaded
,
816 [out] QWORD
*pcnsDownload
);
818 HRESULT GetSaveAsProgress
(
819 [out] DWORD
*pdwPercent
);
822 [in] const WCHAR
*pwszFilename
);
824 HRESULT GetProtocolName
(
825 [out, size_is(*pcchProtocol
)] WCHAR
*pwszProtocol
,
826 [in, out] DWORD
*pcchProtocol
);
828 HRESULT StartAtMarker
(
829 [in] WORD wMarkerIndex
,
830 [in] QWORD cnsDuration
,
832 [in] void *pvContext
);
834 HRESULT GetOutputSetting
(
835 [in] DWORD dwOutputNum
,
836 [in] LPCWSTR pszName
,
837 [out] WMT_ATTR_DATATYPE
*pType
,
838 [out, size_is(*pcbLength
)] BYTE *pValue
,
839 [in, out] WORD
*pcbLength
);
841 HRESULT SetOutputSetting
(
842 [in] DWORD dwOutputNum
,
843 [in] LPCWSTR pszName
,
844 [in] WMT_ATTR_DATATYPE Type
,
845 [in, size_is(cbLength
)] const BYTE *pValue
,
850 [in] QWORD cnsDuration
,
853 HRESULT SetLogClientID
(
854 [in] BOOL fLogClientID
);
856 HRESULT GetLogClientID
(
857 [out] BOOL
*pfLogClientID
);
859 HRESULT StopBuffering
();
862 [in] IStream
*pStream
,
863 [in] IWMReaderCallback
*pCallback
,
864 [in] void *pvContext
);
869 uuid(5dc0674b
-f04B
-4a4e
-9f2a
-b1afde2c8100
),
870 pointer_default(unique),
873 interface IWMReaderAdvanced3
: IWMReaderAdvanced2
875 HRESULT StopNetStreaming
();
877 HRESULT StartAtPosition
(
878 [in] WORD wStreamNum
,
879 [in] void *pvOffsetStart
,
880 [in] void *pvDuration
,
881 [in] WMT_OFFSET_FORMAT dwOffsetFormat
,
883 [in] void *pvContext
);
888 uuid(945a76a2
-12ae
-4d48
-bd3c
-cd1d90399b85
),
889 pointer_default(unique),
892 interface IWMReaderAdvanced4
: IWMReaderAdvanced3
894 HRESULT GetLanguageCount
(
895 [in] DWORD dwOutputNum
,
896 [out] WORD
*pwLanguageCount
);
899 [in] DWORD dwOutputNum
,
901 [out, size_is(*pcchLanguageStringLength
)] WCHAR
*pwszLanguageString
,
902 [in, out] WORD
*pcchLanguageStringLength
);
904 HRESULT GetMaxSpeedFactor
(
905 [out] double *pdblFactor
);
907 HRESULT IsUsingFastCache
(
908 [out] BOOL
*pfUsingFastCache
);
911 [in] LPCWSTR wszNameSpace
,
912 [in] LPCWSTR wszName
,
913 [in] LPCWSTR wszValue
);
915 HRESULT SendLogParams
();
917 HRESULT CanSaveFileAs
(
918 [out] BOOL
*pfCanSave
);
920 HRESULT CancelSaveFileAs
();
923 [out, size_is(*pcchURL
)] WCHAR
*pwszURL
,
924 [in, out] DWORD
*pcchURL
);
929 uuid(24c44db0
-55d1
-49ae
-a5cc
-f13815e36363
),
930 pointer_default(unique),
933 interface IWMReaderAdvanced5
: IWMReaderAdvanced4
935 HRESULT SetPlayerHook
(
936 [in] DWORD dwOutputNum
,
937 [in] IWMPlayerHook
*pHook
);
942 uuid(18a2e7f8
-428f
-4acd
-8a00
-e64639bc93de
),
943 pointer_default(unique),
946 interface IWMReaderAdvanced6
: IWMReaderAdvanced5
948 HRESULT SetProtectStreamSamples
(
949 [in, size_is(cbCertificate
)] BYTE *pbCertificate
,
950 [in] DWORD cbCertificate
,
951 [in] DWORD dwCertificateType
,
953 [out, size_is(*pcbInitializationVector
)] BYTE *pbInitializationVector
,
954 [in, out] DWORD
*pcbInitializationVector
);
959 uuid(9397f121
-7705-4dc9
-b049
-98b698188414
),
960 pointer_default( unique ),
963 interface IWMSyncReader
: IUnknown
966 [in] const WCHAR
*pwszFilename
);
971 [in] QWORD cnsStartTime
,
972 [in] LONGLONG cnsDuration
);
974 HRESULT SetRangeByFrame
(
975 [in] WORD wStreamNum
,
976 [in] QWORD qwFrameNumber
,
977 [in] LONGLONG cFramesToRead
);
979 HRESULT GetNextSample
(
980 [in] WORD wStreamNum
,
981 [out] INSSBuffer
**ppSample
,
982 [out] QWORD
*pcnsSampleTime
,
983 [out] QWORD
*pcnsDuration
,
984 [out] DWORD
*pdwFlags
,
985 [out] DWORD
*pdwOutputNum
,
986 [out] WORD
*pwStreamNum
);
988 HRESULT SetStreamsSelected
(
989 [in] WORD cStreamCount
,
990 [in] WORD
*pwStreamNumbers
,
991 [in] WMT_STREAM_SELECTION
*pSelections
);
993 HRESULT GetStreamSelected
(
994 [in] WORD wStreamNum
,
995 [out] WMT_STREAM_SELECTION
*pSelection
);
997 HRESULT SetReadStreamSamples
(
998 [in] WORD wStreamNum
,
999 [in] BOOL fCompressed
);
1001 HRESULT GetReadStreamSamples
(
1002 [in] WORD wStreamNum
,
1003 [out] BOOL
*pfCompressed
);
1005 HRESULT GetOutputSetting
(
1006 [in] DWORD dwOutputNum
,
1007 [in] LPCWSTR pszName
,
1008 [out] WMT_ATTR_DATATYPE
*pType
,
1009 [out, size_is(*pcbLength
)] BYTE *pValue
,
1010 [in, out] WORD
*pcbLength
);
1012 HRESULT SetOutputSetting
(
1013 [in] DWORD dwOutputNum
,
1014 [in] LPCWSTR pszName
,
1015 [in] WMT_ATTR_DATATYPE Type
,
1016 [in, size_is(cbLength
)] const BYTE *pValue
,
1017 [in] WORD cbLength
);
1019 HRESULT GetOutputCount
(
1020 [out] DWORD
*pcOutputs
);
1022 HRESULT GetOutputProps
(
1023 [in] DWORD dwOutputNum
,
1024 [out] IWMOutputMediaProps
**ppOutput
);
1026 HRESULT SetOutputProps
(
1027 [in] DWORD dwOutputNum
,
1028 [in] IWMOutputMediaProps
*pOutput
);
1030 HRESULT GetOutputFormatCount
(
1031 [in] DWORD dwOutputNum
,
1032 [out] DWORD
*pcFormats
);
1034 HRESULT GetOutputFormat
(
1035 [in] DWORD dwOutputNum
,
1036 [in] DWORD dwFormatNum
,
1037 [out] IWMOutputMediaProps
**ppProps
);
1039 HRESULT GetOutputNumberForStream
(
1040 [in] WORD wStreamNum
,
1041 [out] DWORD
*pdwOutputNum
);
1043 HRESULT GetStreamNumberForOutput
(
1044 [in] DWORD dwOutputNum
,
1045 [out] WORD
*pwStreamNum
);
1047 HRESULT GetMaxOutputSampleSize
(
1048 [in] DWORD dwOutput
,
1049 [out] DWORD
*pcbMax
);
1051 HRESULT GetMaxStreamSampleSize
(
1053 [out] DWORD
*pcbMax
);
1056 [in] IStream
*pStream
);
1061 uuid(96406bd5
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1062 pointer_default(unique),
1065 interface IWMInputMediaProps
: IWMMediaProps
1067 HRESULT GetConnectionName
(
1068 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
1069 [in, out] WORD
*pcchName
);
1071 HRESULT GetGroupName
(
1072 [out, size_is(*pcchName
)] WCHAR
*pwszName
,
1073 [in, out] WORD
*pcchName
);
1078 uuid(96406be4
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1079 pointer_default(unique),
1082 interface IWMWriterSink
: IUnknown
1085 [in] INSSBuffer
*pHeader
);
1088 [out] BOOL
*pfRealTime
);
1090 HRESULT AllocateDataUnit
(
1091 [in] DWORD cbDataUnit
,
1092 [out] INSSBuffer
**ppDataUnit
);
1095 [in] INSSBuffer
*pDataUnit
);
1097 HRESULT OnEndWriting
();
1102 uuid(96406bd4
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1103 pointer_default(unique),
1106 interface IWMWriter
: IUnknown
1108 HRESULT SetProfileByID
(
1109 [in] REFGUID guidProfile
);
1112 [in] IWMProfile
*pProfile
);
1114 HRESULT SetOutputFilename
(
1115 [in] const WCHAR
*pwszFilename
);
1117 HRESULT GetInputCount
(
1118 [out] DWORD
*pcInputs
);
1120 HRESULT GetInputProps
(
1121 [in] DWORD dwInputNum
,
1122 [out] IWMInputMediaProps
**ppInput
);
1124 HRESULT SetInputProps
(
1125 [in] DWORD dwInputNum
,
1126 [in] IWMInputMediaProps
*pInput
);
1128 HRESULT GetInputFormatCount
(
1129 [in] DWORD dwInputNumber
,
1130 [out] DWORD
*pcFormats
);
1132 HRESULT GetInputFormat
(
1133 [in] DWORD dwInputNumber
,
1134 [in] DWORD dwFormatNumber
,
1135 [out] IWMInputMediaProps
**pProps
);
1137 HRESULT BeginWriting
();
1139 HRESULT EndWriting
();
1141 HRESULT AllocateSample
(
1142 [in] DWORD dwSampleSize
,
1143 [out] INSSBuffer
**ppSample
);
1145 HRESULT WriteSample
(
1146 [in] DWORD dwInputNum
,
1147 [in] QWORD cnsSampleTime
,
1149 [in] INSSBuffer
*pSample
);
1156 uuid(96406be3
-2b2b
-11d3
-b36b
-00C04f6108ff
),
1157 pointer_default(unique),
1160 interface IWMWriterAdvanced
: IUnknown
1162 HRESULT GetSinkCount
(
1163 [out] DWORD
*pcSinks
);
1166 [in] DWORD dwSinkNum
,
1167 [out] IWMWriterSink
**ppSink
);
1170 [in] IWMWriterSink
*pSink
);
1173 [in] IWMWriterSink
*pSink
);
1175 HRESULT WriteStreamSample
(
1176 [in] WORD wStreamNum
,
1177 [in] QWORD cnsSampleTime
,
1178 [in] DWORD msSampleSendTime
,
1179 [in] QWORD cnsSampleDuration
,
1181 [in] INSSBuffer
*pSample
);
1183 HRESULT SetLiveSource
(
1184 BOOL fIsLiveSource
);
1187 [out] BOOL
*pfRealTime
);
1189 HRESULT GetWriterTime
(
1190 [out] QWORD
*pCurrentTime
);
1192 HRESULT GetStatistics
(
1193 [in] WORD wStreamNum
,
1194 [out] WM_WRITER_STATISTICS
*pStats
);
1196 HRESULT SetSyncTolerance
(
1197 [in] DWORD msWindow
);
1199 HRESULT GetSyncTolerance
(
1200 [out] DWORD
*pmsWindow
);
1205 uuid(962dc1ec
-c046
-4db8
-9cc7
-26ceae500817
),
1206 pointer_default(unique),
1209 interface IWMWriterAdvanced2
: IWMWriterAdvanced
1211 HRESULT GetInputSetting
(
1212 [in] DWORD dwInputNum
,
1213 [in] LPCWSTR pszName
,
1214 [out] WMT_ATTR_DATATYPE
*pType
,
1215 [out, size_is(*pcbLength
)] BYTE *pValue
,
1216 [in, out] WORD
*pcbLength
);
1218 HRESULT SetInputSetting
(
1219 [in] DWORD dwInputNum
,
1220 [in] LPCWSTR pszName
,
1221 [in] WMT_ATTR_DATATYPE Type
,
1222 [in, size_is(cbLength
)] const BYTE *pValue
,
1223 [in] WORD cbLength
);
1228 uuid(2cd6492d
-7c37
-4e76
-9d3b
-59261183a22e
),
1229 pointer_default(unique),
1232 interface IWMWriterAdvanced3
: IWMWriterAdvanced2
1234 HRESULT GetStatisticsEx
(
1235 [in] WORD wStreamNum
,
1236 [out] WM_WRITER_STATISTICS_EX
*pStats
);
1238 HRESULT SetNonBlocking
();
1243 uuid(96406bda
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1244 pointer_default(unique),
1247 interface IWMHeaderInfo
: IUnknown
1249 HRESULT GetAttributeCount
(
1250 [in] WORD stream_num
,
1251 [out] WORD
*attributes
);
1253 HRESULT GetAttributeByIndex
(
1255 [in, out] WORD
*stream_num
,
1256 [out, size_is( *name_len
)] WCHAR
*name
,
1257 [in, out] WORD
*name_len
,
1258 [out] WMT_ATTR_DATATYPE
*type
,
1259 [out, size_is( *length
)] BYTE *value
,
1260 [in, out] WORD
*length
);
1262 HRESULT GetAttributeByName
(
1263 [in, out] WORD
*stream_num
,
1265 [out] WMT_ATTR_DATATYPE
*type
,
1266 [out, size_is( *length
)] BYTE *value
,
1267 [in, out] WORD
*length
);
1269 HRESULT SetAttribute
(
1270 [in] WORD stream_num
,
1272 [in] WMT_ATTR_DATATYPE type
,
1273 [in, size_is( length
)] const BYTE *value
,
1276 HRESULT GetMarkerCount
(
1277 [out] WORD
*markers
);
1281 [out, size_is( *marker_len
)] WCHAR
*marker_name
,
1282 [in, out] WORD
*marker_len
,
1283 [out] QWORD
*marker_time
);
1286 [in] LPCWSTR_WMSDK_TYPE_SAFE marker_name
,
1287 [in] QWORD marker_time
);
1289 HRESULT RemoveMarker
(
1292 HRESULT GetScriptCount
(
1293 [out] WORD
*scripts
);
1297 [out, size_is( *type_len
)] WCHAR
*type
,
1298 [in, out] WORD
*type_len
,
1299 [out, size_is( *command_len
)] WCHAR
*command
,
1300 [in, out] WORD
*command_len
,
1301 [out] QWORD
*script_time
);
1304 [in] LPCWSTR_WMSDK_TYPE_SAFE type
,
1305 [in] LPCWSTR_WMSDK_TYPE_SAFE command
,
1306 [in] QWORD script_time
);
1308 HRESULT RemoveScript
(
1314 uuid(15cf9781
-454e-482e
-b393
-85fae487a810
),
1315 pointer_default(unique),
1318 interface IWMHeaderInfo2
: IWMHeaderInfo
1320 HRESULT GetCodecInfoCount
(
1321 [out] DWORD
*codec_infos
);
1323 HRESULT GetCodecInfo
(
1325 [in, out] WORD
*name_len
,
1326 [out, size_is( *name_len
)] WCHAR
*name
,
1327 [in, out] WORD
*description_len
,
1328 [out, size_is( *description_len
)] WCHAR
*description
,
1329 [out] WMT_CODEC_INFO_TYPE
*codec_type
,
1330 [in, out] WORD
*codec_info_cnt
,
1331 [out, size_is( *codec_info_cnt
)] BYTE *codec_info
);
1336 uuid(15cc68e3
-27cc
-4ecd
-b222
-3f5d02d80bd5
),
1337 pointer_default(unique),
1340 interface IWMHeaderInfo3
: IWMHeaderInfo2
1342 HRESULT GetAttributeCountEx
(
1343 [in] WORD stream_num
,
1344 [out] WORD
*attributes
);
1346 HRESULT GetAttributeIndices
(
1347 [in] WORD stream_num
,
1349 [in] WORD
*lang_index
,
1350 [out, size_is( *count
)] WORD
*indices
,
1351 [in, out] WORD
*count
);
1353 HRESULT GetAttributeByIndexEx
(
1354 [in] WORD stream_num
,
1356 [out, size_is( *name_len
)] LPWSTR name
,
1357 [in, out] WORD
*name_len
,
1358 [out] WMT_ATTR_DATATYPE
*type
,
1359 [out] WORD
*lang_index
,
1360 [out, size_is( *data_len
)] BYTE *value
,
1361 [in, out] DWORD
*data_len
);
1363 HRESULT ModifyAttribute
(
1364 [in] WORD stream_num
,
1366 [in] WMT_ATTR_DATATYPE type
,
1367 [in] WORD lang_index
,
1368 [in, size_is( length
)] const BYTE *value
,
1369 [in] DWORD length
);
1371 HRESULT AddAttribute
(
1372 [in] WORD stream_num
,
1375 [in] WMT_ATTR_DATATYPE type
,
1376 [in] WORD lang_index
,
1377 [in, size_is( length
)] const BYTE *value
,
1378 [in] DWORD length
);
1380 HRESULT DeleteAttribute
(
1381 [in] WORD stream_num
,
1384 HRESULT AddCodecInfo
(
1385 [in] LPCWSTR_WMSDK_TYPE_SAFE name
,
1386 [in] LPCWSTR_WMSDK_TYPE_SAFE description
,
1387 [in] WMT_CODEC_INFO_TYPE codec_type
,
1388 [in] WORD codec_info_cnt
,
1389 [in, size_is( codec_info_cnt
)] BYTE *codec_info
);
1394 uuid(96406bec
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1395 pointer_default(unique),
1398 interface IWMReaderNetworkConfig
: IUnknown
1400 HRESULT GetBufferingTime
([out] QWORD
*buffering_time
);
1401 HRESULT SetBufferingTime
([in] QWORD buffering_time
);
1403 HRESULT GetUDPPortRanges
(
1404 [out, size_is( *ranges
)] WM_PORT_NUMBER_RANGE
*array
,
1405 [in, out] DWORD
*ranges
);
1407 HRESULT SetUDPPortRanges
(
1408 [in, size_is( ranges
)] WM_PORT_NUMBER_RANGE
*array
,
1411 HRESULT GetProxySettings
(
1412 [in] const WCHAR
*protocol
,
1413 [out] WMT_PROXY_SETTINGS
*proxy
);
1415 HRESULT SetProxySettings
(
1416 [in] LPCWSTR protocol
,
1417 [in] WMT_PROXY_SETTINGS proxy
);
1419 HRESULT GetProxyHostName
(
1420 [in] const WCHAR
*protocol
,
1421 [out, size_is( *size
)] WCHAR
*hostname
,
1422 [in, out] DWORD
*size
);
1424 HRESULT SetProxyHostName
(
1425 [in] const WCHAR
*protocol
,
1426 [in] const WCHAR
*hostname
);
1428 HRESULT GetProxyPort
(
1429 [in] const WCHAR
*protocol
,
1432 HRESULT SetProxyPort
(
1433 [in] const WCHAR
*protocol
,
1436 HRESULT GetProxyExceptionList
(
1437 [in] const WCHAR
*protocol
,
1438 [out, size_is( *count
)] WCHAR
*exceptions
,
1439 [in, out] DWORD
*count
);
1441 HRESULT SetProxyExceptionList
(
1442 [in] const WCHAR
*protocol
,
1443 [in] const WCHAR
*exceptions
);
1445 HRESULT GetProxyBypassForLocal
(
1446 [in] const WCHAR
*protocol
,
1447 [out] BOOL
*bypass
);
1449 HRESULT SetProxyBypassForLocal
(
1450 [in] const WCHAR
*protocol
,
1453 HRESULT GetForceRerunAutoProxyDetection
([out] BOOL
*detection
);
1454 HRESULT SetForceRerunAutoProxyDetection
([in] BOOL detection
);
1456 HRESULT GetEnableMulticast
([out] BOOL
*multicast
);
1457 HRESULT SetEnableMulticast
([in] BOOL multicast
);
1459 HRESULT GetEnableHTTP
([out] BOOL
*enable
);
1460 HRESULT SetEnableHTTP
([in] BOOL enable
);
1462 HRESULT GetEnableUDP
([out] BOOL
*enable
);
1463 HRESULT SetEnableUDP
([in] BOOL enable
);
1465 HRESULT GetEnableTCP
([out] BOOL
*enable
);
1466 HRESULT SetEnableTCP
([in] BOOL enable
);
1468 HRESULT ResetProtocolRollover
();
1470 HRESULT GetConnectionBandwidth
([out] DWORD
*bandwidth
);
1471 HRESULT SetConnectionBandwidth
([in] DWORD bandwidth
);
1473 HRESULT GetNumProtocolsSupported
([out] DWORD
*protocols
);
1475 HRESULT GetSupportedProtocolName
(
1476 [in] DWORD protocol_num
,
1477 [out, size_is( *size
)] WCHAR
*protocol
,
1478 [in, out] DWORD
*size
);
1480 HRESULT AddLoggingUrl
([in] const WCHAR
*url
);
1482 HRESULT GetLoggingUrl
(
1484 [out, size_is( *size
)] WCHAR
*url
,
1485 [in, out] DWORD
*size
);
1487 HRESULT GetLoggingUrlCount
([out] DWORD
*count
);
1489 HRESULT ResetLoggingUrlList
();
1494 uuid(d979a853
-042b
-4050-8387-c939db22013f
),
1495 pointer_default(unique),
1498 interface IWMReaderNetworkConfig2
: IWMReaderNetworkConfig
1500 HRESULT GetEnableContentCaching
([out] BOOL
*enable
);
1501 HRESULT SetEnableContentCaching
([in] BOOL enable
);
1503 HRESULT GetEnableFastCache
([out] BOOL
*enable
);
1504 HRESULT SetEnableFastCache
([in] BOOL enable
);
1506 HRESULT GetAcceleratedStreamingDuration
([out] QWORD
*duration
);
1507 HRESULT SetAcceleratedStreamingDuration
([in] QWORD duration
);
1509 HRESULT GetAutoReconnectLimit
([out] DWORD
*limit
);
1510 HRESULT SetAutoReconnectLimit
([in] DWORD limit
);
1512 HRESULT GetEnableResends
([out] BOOL
*enable
);
1513 HRESULT SetEnableResends
([in] BOOL enable
);
1515 HRESULT GetEnableThinning
([out] BOOL
*enable
);
1516 HRESULT SetEnableThinning
([in] BOOL enable
);
1518 HRESULT GetMaxNetPacketSize
([out] DWORD
*packet_size
);
1523 uuid(96406bed
-2b2b
-11d3
-b36b
-00c04f6108ff
),
1524 pointer_default(unique),
1528 interface IWMReaderStreamClock
: IUnknown
1530 HRESULT GetTime
([in] QWORD
*now
);
1532 HRESULT SetTimer
([in] QWORD when
,
1536 HRESULT KillTimer
([in] DWORD
id);
1541 uuid(cdfb97ab
-188f
-40b3
-b643
-5b7903975c59
),
1542 pointer_default(unique),
1545 interface IWMPacketSize
: IUnknown
1547 HRESULT GetMaxPacketSize
([out] DWORD
*size
);
1548 HRESULT SetMaxPacketSize
([in] DWORD size
);
1553 uuid(8bfc2b9e
-b646
-4233-a877
-1c6a079669dc
),
1554 pointer_default(unique),
1557 interface IWMPacketSize2
: IWMPacketSize
1559 HRESULT GetMinPacketSize
([out] DWORD
*size
);
1560 HRESULT SetMinPacketSize
([in] DWORD size
);
1565 uuid(d2827540
-3ee7
-432c
-b14c
-dc17f085d3b3
),
1566 pointer_default(unique),
1569 interface IWMDRMReader
: IUnknown
1571 HRESULT AcquireLicense
([in] DWORD flags
);
1572 HRESULT CancelLicenseAcquisition
();
1574 HRESULT Individualize
([in] DWORD flags
);
1575 HRESULT CancelIndividualization
();
1577 HRESULT MonitorLicenseAcquisition
();
1578 HRESULT CancelMonitorLicenseAcquisition
();
1580 HRESULT SetDRMProperty
(
1581 [in] const WCHAR
*name
,
1582 [in] WMT_ATTR_DATATYPE type
,
1583 [in, size_is( length
)] const BYTE *value
,
1586 HRESULT GetDRMProperty
(
1587 [in] const WCHAR
*name
,
1588 [out] WMT_ATTR_DATATYPE
*type
,
1589 [out, size_is( *length
)] BYTE *value
,
1590 [in, out] WORD
*length
);
1595 uuid(befe7a75
-9f1d
-4075-b9d9
-a3c37bda49a0
),
1596 pointer_default(unique),
1599 interface IWMDRMReader2
: IWMDRMReader
1601 HRESULT SetEvaluateOutputLevelLicenses
([in] BOOL evaluate
);
1602 HRESULT GetPlayOutputLevels
(
1603 [out, size_is( *length
)] DRM_PLAY_OPL
*play
,
1604 [in, out] DWORD
*length
,
1605 [out] DWORD
*level
);
1607 HRESULT GetCopyOutputLevels
(
1608 [out, size_is( *length
)] DRM_COPY_OPL
*copy
,
1609 [in, out] DWORD
*length
,
1610 [out] DWORD
*level
);
1612 HRESULT TryNextLicense
();
1617 uuid(e08672de
-f1e7
-4ff4
-a0a3
-fc4b08e4caf8
),
1618 pointer_default(unique),
1621 interface IWMDRMReader3
: IWMDRMReader2
1623 HRESULT GetInclusionList
(
1625 [out] DWORD
*count
);
1630 uuid(bddc4d08
-944d
-4d52
-a612
-46c3fda07dd4
),
1631 pointer_default( unique ),
1634 interface IWMReaderAccelerator
: IUnknown
1636 HRESULT GetCodecInterface
(
1639 [out] void **codec
);
1643 [in] WM_MEDIA_TYPE
*subtype
);
1648 uuid(f369e2f0
-e081
-4fe6
-8450-b810b2f410d1
),
1649 pointer_default(unique),
1652 interface IWMReaderTimecode
: IUnknown
1654 HRESULT GetTimecodeRangeCount
(
1658 HRESULT GetTimecodeRangeBounds
(
1661 [out] DWORD
*start_timecode
,
1662 [out] DWORD
*end_timecode
);
1667 uuid(fdbe5592
-81a1
-41ea
-93bd
-735cad1adc05
),
1668 pointer_default(unique),
1671 interface IWMReaderTypeNegotiation
: IUnknown
1673 HRESULT TryOutputProps
(
1675 [in] IWMOutputMediaProps
*props
);
1680 uuid(df683f00
-2d49
-4d8e
-92b7
-fb19f6a0dc57
),
1681 pointer_default(unique),
1684 interface IWMLanguageList
: IUnknown
1686 HRESULT GetLanguageCount
(
1689 HRESULT GetLanguageDetails
(
1691 [out, size_is( *length
)] WCHAR
*language
,
1692 [in, out] WORD
*length
);
1694 HRESULT AddLanguageByRFC1766String
(
1695 [in] LPCWSTR_WMSDK_TYPE_SAFE language
,
1701 uuid(f28c0300
-9baa
-4477-a846
-1744d9cbf533
),
1702 pointer_default(unique),
1705 interface IWMReaderPlaylistBurn
: IUnknown
1707 HRESULT InitPlaylistBurn
(
1709 [in] LPCWSTR_WMSDK_TYPE_SAFE
*filenames
,
1710 [in] IWMStatusCallback
*callback,
1711 [in] void *context
);
1713 HRESULT GetInitResults
(
1715 [out] HRESULT *stat
);
1719 HRESULT EndPlaylistBurn
([in] HRESULT result
);
1724 uuid(72995a79
-5090-42a4
-9c8c
-d9d0b6d34be5
),
1725 pointer_default(unique),
1728 interface IWMPropertyVault
: IUnknown
1730 HRESULT GetPropertyCount
([in] DWORD
*count
);
1732 HRESULT GetPropertyByName
(
1733 [in] const WCHAR
*name
,
1734 [out] WMT_ATTR_DATATYPE
*type
,
1735 [out, size_is( *size
)] BYTE *value
,
1736 [in, out] DWORD
*size
);
1738 HRESULT SetProperty
(
1739 [in] const WCHAR
*name
,
1740 [in] WMT_ATTR_DATATYPE type
,
1744 HRESULT GetPropertyByIndex
(
1746 [out, size_is( *pdwNameLen
)] WCHAR
*name
,
1747 [in, out] DWORD
*length
,
1748 [out] WMT_ATTR_DATATYPE
*type
,
1749 [out, size_is( *size
)] BYTE *value
,
1750 [in, out] DWORD
*size
);
1752 HRESULT CopyPropertiesFrom
([in] IWMPropertyVault
*vault
);
1759 uuid(fc54a285
-38c4
-45b5
-aa23
-85b9f7cb424b
),
1760 pointer_default(unique),
1763 interface IWMWriterPreprocess
: IUnknown
1765 HRESULT GetMaxPreprocessingPasses
(
1768 [out] DWORD
*passes
);
1770 HRESULT SetNumPreprocessingPasses
(
1775 HRESULT BeginPreprocessingPass
(
1779 HRESULT PreprocessSample
(
1781 [in] QWORD sample_time
,
1783 [in] INSSBuffer
*sample
);
1785 HRESULT EndPreprocessingPass
(
1790 cpp_quote
("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
1791 cpp_quote
("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
1793 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1794 cpp_quote
("EXTERN_GUID(WMMEDIATYPE_Video, 0x73646976,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1795 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB1, 0xe436eb78,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1796 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB4, 0xe436eb79,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1797 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB8, 0xe436eb7a,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1798 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB565, 0xe436eb7b,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1799 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB555, 0xe436eb7c,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1800 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB24, 0xe436eb7d,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1801 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_RGB32, 0xe436eb7e,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1802 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_I420, 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1803 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_IYUV, 0x56555949,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1804 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YV12, 0x32315659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1805 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YUY2, 0x32595559,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1806 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_P422, 0x32323450,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1807 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_UYVY, 0x59565955,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1808 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YVYU, 0x55595659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1809 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_YVU9, 0x39555659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1810 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_VIDEOIMAGE, 0x1d4a45f2,0xe5f6,0x4b44,0x83,0x88,0xf0,0xae,0x5c,0x0e,0x0c,0x37);")
1811 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MP43, 0x3334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1812 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MP4S, 0x5334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1813 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_M4S2, 0x3253344d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1814 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMV1, 0x31564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1815 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMV2, 0x32564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1816 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MSS1, 0x3153534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1817 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MPEG2_VIDEO, 0xe06d8026,0xdb46,0x11cf,0xb4,0xd1,0x00,0x80,0x5f,0x6c,0xbb,0xea);")
1818 cpp_quote
("EXTERN_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1819 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_PCM, 0x00000001,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1820 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_DRM, 0x00000009,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1821 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMAudioV9, 0x00000162,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1822 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMAudio_Lossless, 0x00000163,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1823 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_MSS2, 0x3253534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1824 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMSP1, 0x0000000a,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1825 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMSP2, 0x0000000b,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1826 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMV3, 0x33564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1827 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMVP, 0x50564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1828 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WVP2, 0x32505657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1829 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WMVA, 0x41564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1830 cpp_quote
("EXTERN_GUID(WMMEDIASUBTYPE_WVC1, 0x31435657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")