d3d11/tests: Add test for clearing buffer unordered access views.
[wine.git] / include / wmsdkidl.idl
blobb62182674fac6b2e05d8530fa851b1d602edc434
1 /*
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
19 import "oaidl.idl";
20 import "wmsbuffer.idl";
21 import "drmexternals.idl";
23 typedef unsigned __int64 QWORD;
25 typedef struct _WMMediaType
27 GUID majortype;
28 GUID subtype;
29 BOOL bFixedSizeSamples;
30 BOOL bTemporalCompression;
31 ULONG lSampleSize;
32 GUID formattype;
33 IUnknown *pUnk;
34 ULONG cbFormat;
35 [size_is(cbFormat)] BYTE *pbFormat;
36 } WM_MEDIA_TYPE;
38 typedef struct _WMWriterStatistics
40 QWORD qwSampleCount;
41 QWORD qwByteCount;
42 QWORD qwDroppedSampleCount;
43 QWORD qwDroppedByteCount;
44 DWORD dwCurrentBitrate;
45 DWORD dwAverageBitrate;
46 DWORD dwExpectedBitrate;
47 DWORD dwCurrentSampleRate;
48 DWORD dwAverageSampleRate;
49 DWORD dwExpectedSampleRate;
50 } WM_WRITER_STATISTICS;
52 typedef struct _WMWriterStatisticsEx
54 DWORD dwBitratePlusOverhead;
55 DWORD dwCurrentSampleDropRateInQueue;
56 DWORD dwCurrentSampleDropRateInCodec;
57 DWORD dwCurrentSampleDropRateInMultiplexer;
58 DWORD dwTotalSampleDropsInQueue;
59 DWORD dwTotalSampleDropsInCodec;
60 DWORD dwTotalSampleDropsInMultiplexer;
61 } WM_WRITER_STATISTICS_EX;
63 typedef struct _WMReaderStatistics
65 DWORD cbSize;
66 DWORD dwBandwidth;
67 DWORD cPacketsReceived;
68 DWORD cPacketsRecovered;
69 DWORD cPacketsLost;
70 WORD wQuality;
71 } WM_READER_STATISTICS;
73 typedef struct _WMReaderClientInfo
75 DWORD cbSize;
76 WCHAR *wszLang;
77 WCHAR *wszBrowserUserAgent;
78 WCHAR *wszBrowserWebPage;
79 QWORD qwReserved;
80 LPARAM *pReserved;
81 WCHAR *wszHostExe;
82 QWORD qwHostVersion;
83 WCHAR *wszPlayerUserAgent;
84 } WM_READER_CLIENTINFO;
86 typedef enum WMT_ATTR_DATATYPE
88 WMT_TYPE_DWORD = 0,
89 WMT_TYPE_STRING = 1,
90 WMT_TYPE_BINARY = 2,
91 WMT_TYPE_BOOL = 3,
92 WMT_TYPE_QWORD = 4,
93 WMT_TYPE_WORD = 5,
94 WMT_TYPE_GUID = 6,
95 } WMT_ATTR_DATATYPE;
97 typedef enum WMT_STATUS
99 WMT_ERROR = 0,
100 WMT_OPENED = 1,
101 WMT_BUFFERING_START = 2,
102 WMT_BUFFERING_STOP = 3,
103 WMT_EOF = 4,
104 WMT_END_OF_FILE = 4,
105 WMT_END_OF_SEGMENT = 5,
106 WMT_END_OF_STREAMING = 6,
107 WMT_LOCATING = 7,
108 WMT_CONNECTING = 8,
109 WMT_NO_RIGHTS = 9,
110 WMT_MISSING_CODEC = 10,
111 WMT_STARTED = 11,
112 WMT_STOPPED = 12,
113 WMT_CLOSED = 13,
114 WMT_STRIDING = 14,
115 WMT_TIMER = 15,
116 WMT_INDEX_PROGRESS = 16,
117 WMT_SAVEAS_START = 17,
118 WMT_SAVEAS_STOP = 18,
119 WMT_NEW_SOURCEFLAGS = 19,
120 WMT_NEW_METADATA = 20,
121 WMT_BACKUPRESTORE_BEGIN = 21,
122 WMT_SOURCE_SWITCH = 22,
123 WMT_ACQUIRE_LICENSE = 23,
124 WMT_INDIVIDUALIZE = 24,
125 WMT_NEEDS_INDIVIDUALIZATION = 25,
126 WMT_NO_RIGHTS_EX = 26,
127 WMT_BACKUPRESTORE_END = 27,
128 WMT_BACKUPRESTORE_CONNECTING = 28,
129 WMT_BACKUPRESTORE_DISCONNECTING = 29,
130 WMT_ERROR_WITHURL = 30,
131 WMT_RESTRICTED_LICENSE = 31,
132 WMT_CLIENT_CONNECT = 32,
133 WMT_CLIENT_DISCONNECT = 33,
134 WMT_NATIVE_OUTPUT_PROPS_CHANGED = 34,
135 WMT_RECONNECT_START = 35,
136 WMT_RECONNECT_END = 36,
137 WMT_CLIENT_CONNECT_EX = 37,
138 WMT_CLIENT_DISCONNECT_EX = 38,
139 WMT_SET_FEC_SPAN = 39,
140 WMT_PREROLL_READY = 40,
141 WMT_PREROLL_COMPLETE = 41,
142 WMT_CLIENT_PROPERTIES = 42,
143 WMT_LICENSEURL_SIGNATURE_STATE = 43,
144 WMT_INIT_PLAYLIST_BURN = 44,
145 WMT_TRANSCRYPTOR_INIT = 45,
146 WMT_TRANSCRYPTOR_SEEKED = 46,
147 WMT_TRANSCRYPTOR_READ = 47,
148 WMT_TRANSCRYPTOR_CLOSED = 48,
149 WMT_PROXIMITY_RESULT = 49,
150 WMT_PROXIMITY_COMPLETED = 50,
151 WMT_CONTENT_ENABLER = 51
152 } WMT_STATUS;
154 typedef enum WMT_STREAM_SELECTION
156 WMT_OFF = 0,
157 WMT_CLEANPOINT_ONLY = 1,
158 WMT_ON = 2,
159 } WMT_STREAM_SELECTION;
161 typedef enum WMT_VERSION
163 WMT_VER_4_0 = 0x00040000,
164 WMT_VER_7_0 = 0x00070000,
165 WMT_VER_8_0 = 0x00080000,
166 WMT_VER_9_0 = 0x00090000
167 } WMT_VERSION;
169 typedef enum WMT_PLAY_MODE
171 WMT_PLAY_MODE_AUTOSELECT,
172 WMT_PLAY_MODE_LOCAL,
173 WMT_PLAY_MODE_DOWNLOAD,
174 WMT_PLAY_MODE_STREAMING
175 } WMT_PLAY_MODE;
177 typedef enum tagWMT_OFFSET_FORMAT
179 WMT_OFFSET_FORMAT_100NS,
180 WMT_OFFSET_FORMAT_FRAME_NUMBERS,
181 WMT_OFFSET_FORMAT_PLAYLIST_OFFSET,
182 WMT_OFFSET_FORMAT_TIMECODE,
183 WMT_OFFSET_FORMAT_100NS_APPROXIMATE
184 } WMT_OFFSET_FORMAT;
186 typedef enum WMT_CODEC_INFO_TYPE
188 WMT_CODECINFO_AUDIO = 0,
189 WMT_CODECINFO_VIDEO = 1,
190 WMT_CODECINFO_UNKNOWN = 0xFFFFFFFF,
191 } WMT_CODEC_INFO_TYPE;
193 typedef enum WMT_PROXY_SETTINGS
195 WMT_PROXY_SETTING_NONE = 0,
196 WMT_PROXY_SETTING_MANUAL = 1,
197 WMT_PROXY_SETTING_AUTO = 2,
198 WMT_PROXY_SETTING_BROWSER = 3,
199 WMT_PROXY_SETTING_MAX
200 } WMT_PROXY_SETTINGS;
202 typedef enum tagWMT_STORAGE_FORMAT
204 WMT_Storage_Format_MP3 = 0,
205 WMT_Storage_Format_V1 = 1
206 } WMT_STORAGE_FORMAT;
208 #include <pshpack2.h>
209 typedef struct _WMStreamPrioritizationRecord
211 WORD wStreamNumber;
212 BOOL fMandatory;
213 } WM_STREAM_PRIORITY_RECORD;
214 #include <poppack.h>
216 typedef struct _WM_PORT_NUMBER_RANGE
218 WORD wPortBegin;
219 WORD wPortEnd;
220 } WM_PORT_NUMBER_RANGE;
222 typedef LPCWSTR LPCWSTR_WMSDK_TYPE_SAFE;
225 object,
226 uuid(6d7cdc70-9888-11d3-8edc-00c04f6109cf),
227 pointer_default(unique),
228 local
230 interface IWMStatusCallback : IUnknown
232 HRESULT OnStatus(
233 [in] WMT_STATUS Status,
234 [in] HRESULT hr,
235 [in] WMT_ATTR_DATATYPE dwType,
236 [in] BYTE *pValue,
237 [in] void *pvContext);
241 object,
242 uuid(96406bd8-2b2b-11d3-b36b-00c04f6108ff),
243 pointer_default(unique),
244 local
246 interface IWMReaderCallback : IWMStatusCallback
248 HRESULT OnSample(
249 [in] DWORD dwOutputNum,
250 [in] QWORD cnsSampleTime,
251 [in] QWORD cnsSampleDuration,
252 [in] DWORD dwFlags,
253 [in] INSSBuffer *pSample,
254 [in] void *pvContext);
258 object,
259 uuid(96406Bdd-2b2b-11d3-b36b-00c04f6108ff),
260 pointer_default(unique),
261 local
263 interface IWMStreamList : IUnknown
265 HRESULT GetStreams(
266 [out, size_is(*pcStreams)] WORD *pwStreamNumArray,
267 [in, out] WORD *pcStreams);
269 HRESULT AddStream([in] WORD wStreamNum);
270 HRESULT RemoveStream([in] WORD wStreamNum);
274 object,
275 uuid(96406Bde-2b2b-11d3-b36b-00c04f6108ff),
276 pointer_default(unique),
277 local
279 interface IWMMutualExclusion : IWMStreamList
281 HRESULT GetType([out] GUID *pguidType);
282 HRESULT SetType([in] REFGUID guidType);
286 object,
287 uuid(ad694af1-f8d9-42f8-bc47-70311b0c4f9e),
288 pointer_default(unique),
289 local
291 interface IWMBandwidthSharing : IWMStreamList
293 HRESULT GetType([out] GUID *guid);
294 HRESULT SetType([in] REFGUID guid);
296 HRESULT GetBandwidth(
297 [out] DWORD *bitrate,
298 [out] DWORD *buffer);
300 HRESULT SetBandwidth(
301 [in] DWORD bitrate,
302 [in] DWORD buffer);
306 object,
307 uuid(8c1c6090-f9a8-4748-8ec3-dd1108ba1e77),
308 pointer_default(unique),
309 local
311 interface IWMStreamPrioritization : IUnknown
313 HRESULT GetPriorityRecords(
314 [out] WM_STREAM_PRIORITY_RECORD *array,
315 [in, out] WORD *records);
317 HRESULT SetPriorityRecords(
318 [in] WM_STREAM_PRIORITY_RECORD *array,
319 [in] WORD records);
323 object,
324 uuid(96406Bdc-2b2b-11d3-b36b-00c04f6108ff),
325 pointer_default(unique),
326 local
328 interface IWMStreamConfig : IUnknown
330 HRESULT GetStreamType([out] GUID *pguidStreamType);
331 HRESULT GetStreamNumber([out] WORD *pwStreamNum);
332 HRESULT SetStreamNumber([in] WORD wStreamNum);
334 HRESULT GetStreamName(
335 [out, size_is(*pcchStreamName)] WCHAR *pwszStreamName,
336 [in, out] WORD *pcchStreamName);
338 HRESULT SetStreamName([in] LPCWSTR_WMSDK_TYPE_SAFE pwszStreamName);
340 HRESULT GetConnectionName(
341 [out, size_is(*pcchInputName)] WCHAR *pwszInputName,
342 [in, out] WORD *pcchInputName);
344 HRESULT SetConnectionName([in] LPCWSTR_WMSDK_TYPE_SAFE pwszInputName);
345 HRESULT GetBitrate([out] DWORD *pdwBitrate);
346 HRESULT SetBitrate([in] DWORD pdwBitrate);
347 HRESULT GetBufferWindow([out] DWORD *pmsBufferWindow);
348 HRESULT SetBufferWindow([in] DWORD msBufferWindow);
352 object,
353 uuid(96406bdb-2b2b-11d3-b36b-00c04f6108ff),
354 pointer_default(unique),
355 local
357 interface IWMProfile : IUnknown
359 HRESULT GetVersion(
360 [out] WMT_VERSION *pdwVersion);
362 HRESULT GetName(
363 [out, size_is(*pcchName)] WCHAR *pwszName,
364 [in, out] DWORD *pcchName);
366 HRESULT SetName(
367 [in] const WCHAR *pwszName);
369 HRESULT GetDescription(
370 [out, size_is(*pcchDescription)] WCHAR *pwszDescription,
371 [in, out] DWORD *pcchDescription);
373 HRESULT SetDescription(
374 [in] const WCHAR *pwszDescription);
376 HRESULT GetStreamCount(
377 [out] DWORD *pcStreams);
379 HRESULT GetStream(
380 [in] DWORD dwStreamIndex,
381 [out] IWMStreamConfig **ppConfig);
383 HRESULT GetStreamByNumber(
384 [in] WORD wStreamNum,
385 [out] IWMStreamConfig **ppConfig);
387 HRESULT RemoveStream(
388 [in] IWMStreamConfig *pConfig);
390 HRESULT RemoveStreamByNumber(
391 [in] WORD wStreamNum);
393 HRESULT AddStream(
394 [in] IWMStreamConfig *pConfig);
396 HRESULT ReconfigStream(
397 [in] IWMStreamConfig *pConfig);
399 HRESULT CreateNewStream(
400 [in] REFGUID guidStreamType,
401 [out] IWMStreamConfig **ppConfig);
403 HRESULT GetMutualExclusionCount(
404 [out] DWORD *pcME);
406 HRESULT GetMutualExclusion(
407 [in] DWORD dwMEIndex,
408 [out] IWMMutualExclusion **ppME);
410 HRESULT RemoveMutualExclusion(
411 [in] IWMMutualExclusion *pME);
413 HRESULT AddMutualExclusion(
414 [in] IWMMutualExclusion *pME);
416 HRESULT CreateNewMutualExclusion(
417 [out] IWMMutualExclusion **ppME);
421 object,
422 uuid(07e72d33-d94e-4be7-8843-60ae5ff7e5f5),
423 pointer_default(unique),
424 local
426 interface IWMProfile2 : IWMProfile
428 HRESULT GetProfileID([out] GUID *guid);
432 object,
433 uuid(00ef96cc-a461-4546-8bcd-c9a28f0e06f5),
434 pointer_default(unique),
435 local
437 interface IWMProfile3 : IWMProfile2
439 HRESULT GetStorageFormat([out] WMT_STORAGE_FORMAT *storage);
440 HRESULT SetStorageFormat([in] WMT_STORAGE_FORMAT storage);
442 HRESULT GetBandwidthSharingCount([out] DWORD *count);
444 HRESULT GetBandwidthSharing(
445 [in] DWORD index,
446 [out] IWMBandwidthSharing **bandwidth);
448 HRESULT RemoveBandwidthSharing([in] IWMBandwidthSharing *bandwidth);
450 HRESULT AddBandwidthSharing([in] IWMBandwidthSharing *bandwidth);
452 HRESULT CreateNewBandwidthSharing([out] IWMBandwidthSharing **bandwidth);
454 HRESULT GetStreamPrioritization([out] IWMStreamPrioritization **stream);
456 HRESULT SetStreamPrioritization([in] IWMStreamPrioritization *stream);
458 HRESULT RemoveStreamPrioritization();
460 HRESULT CreateNewStreamPrioritization([out] IWMStreamPrioritization **stream);
462 HRESULT GetExpectedPacketCount(
463 [in] QWORD duration,
464 [out] QWORD *packets);
468 object,
469 uuid(d16679f2-6ca0-472d-8d31-2f5d55aee155),
470 pointer_default(unique),
471 local
473 interface IWMProfileManager : IUnknown
475 HRESULT CreateEmptyProfile(
476 [in] WMT_VERSION dwVersion,
477 [out] IWMProfile **ppProfile);
479 HRESULT LoadProfileByID(
480 [in] REFGUID guidProfile,
481 [out] IWMProfile **ppProfile);
483 HRESULT LoadProfileByData(
484 [in] const WCHAR *pwszProfile,
485 [out] IWMProfile **ppProfile);
487 HRESULT SaveProfile(
488 [in] IWMProfile *pIWMProfile,
489 [in] WCHAR *pwszProfile,
490 [in, out] DWORD *pdwLength);
492 HRESULT GetSystemProfileCount(
493 [out] DWORD *pcProfiles);
495 HRESULT LoadSystemProfile(
496 [in] DWORD dwProfileIndex,
497 [out] IWMProfile **ppProfile);
500 cpp_quote("HRESULT WINAPI WMCreateProfileManager(IWMProfileManager**);")
503 object,
504 uuid(96406bce-2b2b-11d3-b36b-00c04f6108ff),
505 pointer_default(unique),
506 local
508 interface IWMMediaProps : IUnknown
510 HRESULT GetType(
511 [out] GUID *pguidType);
513 HRESULT GetMediaType(
514 [out] WM_MEDIA_TYPE *pType,
515 [in, out] DWORD *pcbType);
517 HRESULT SetMediaType(
518 [in] WM_MEDIA_TYPE *pType);
522 object,
523 uuid(96406bd7-2b2b-11d3-b36b-00c04f6108ff),
524 pointer_default(unique),
525 local
527 interface IWMOutputMediaProps : IWMMediaProps
529 HRESULT GetStreamGroupName(
530 [out, size_is(*pcchName)] WCHAR *pwszName,
531 [in, out] WORD *pcchName);
533 HRESULT GetConnectionName(
534 [out, size_is(*pcchName)] WCHAR *pwszName,
535 [in, out] WORD *pcchName);
539 object,
540 uuid(96406bd9-2b2b-11d3-b36b-00c04f6108ff),
541 pointer_default(unique),
542 local
544 interface IWMMetadataEditor : IUnknown
546 HRESULT Open(
547 [in] const WCHAR *pwszFilename);
549 HRESULT Close();
551 HRESULT Flush();
555 object,
556 uuid(96406bd6-2b2b-11d3-b36b-00c04f6108ff),
557 pointer_default(unique),
558 local
560 interface IWMReader : IUnknown
562 HRESULT Open(
563 [in] const WCHAR *pwszURL,
564 [in] IWMReaderCallback *pCallback,
565 [in] void *pvContext);
567 HRESULT Close();
569 HRESULT GetOutputCount(
570 [out] DWORD *pcOutputs);
572 HRESULT GetOutputProps(
573 [in] DWORD dwOutputNum,
574 [out] IWMOutputMediaProps **ppOutput);
576 HRESULT SetOutputProps(
577 [in] DWORD dwOutputNum,
578 [in] IWMOutputMediaProps *pOutput);
580 HRESULT GetOutputFormatCount(
581 [in] DWORD dwOutputNumber,
582 [out] DWORD *pcFormats);
584 HRESULT GetOutputFormat(
585 [in] DWORD dwOutputNumber,
586 [in] DWORD dwFormatNumber,
587 [out] IWMOutputMediaProps** ppProps);
589 HRESULT Start(
590 [in] QWORD cnsStart,
591 [in] QWORD cnsDuration,
592 [in] float fRate,
593 [in] void *pvContext);
595 HRESULT Stop();
597 HRESULT Pause();
599 HRESULT Resume();
603 object,
604 uuid(e5b7ca9a-0f1c-4f66-9002-74ec50d8b304),
605 pointer_default(unique),
606 local
608 interface IWMPlayerHook : IUnknown
610 HRESULT PreDecode();
614 object,
615 uuid(96406bea-2b2b-11d3-b36b-00c04f6108ff),
616 pointer_default(unique),
617 local
619 interface IWMReaderAdvanced : IUnknown
621 HRESULT SetUserProvidedClock(
622 [in] BOOL fUserClock);
624 HRESULT GetUserProvidedClock(
625 [out] BOOL *pfUserClock);
627 HRESULT DeliverTime(
628 [in] QWORD cnsTime);
630 HRESULT SetManualStreamSelection(
631 [in] BOOL fSelection);
633 HRESULT GetManualStreamSelection(
634 [out] BOOL *pfSelection);
636 HRESULT SetStreamsSelected(
637 [in] WORD cStreamCount,
638 [in] WORD *pwStreamNumbers,
639 [in] WMT_STREAM_SELECTION *pSelections);
641 HRESULT GetStreamSelected(
642 [in] WORD wStreamNum,
643 [out] WMT_STREAM_SELECTION *pSelection);
645 HRESULT SetReceiveSelectionCallbacks(
646 [in] BOOL fGetCallbacks);
648 HRESULT GetReceiveSelectionCallbacks(
649 [out] BOOL *pfGetCallbacks);
651 HRESULT SetReceiveStreamSamples(
652 [in] WORD wStreamNum,
653 [in] BOOL fReceiveStreamSamples);
655 HRESULT GetReceiveStreamSamples(
656 [in] WORD wStreamNum,
657 [out] BOOL *pfReceiveStreamSamples);
659 HRESULT SetAllocateForOutput(
660 [in] DWORD dwOutputNum,
661 [in] BOOL fAllocate);
663 HRESULT GetAllocateForOutput(
664 [in] DWORD dwOutputNum,
665 [out] BOOL *pfAllocate);
667 HRESULT SetAllocateForStream(
668 [in] WORD wStreamNum,
669 [in] BOOL fAllocate);
671 HRESULT GetAllocateForStream(
672 [in] WORD dwStreamNum,
673 [out] BOOL *pfAllocate);
675 HRESULT GetStatistics(
676 [in, out] WM_READER_STATISTICS *pStatistics);
678 HRESULT SetClientInfo(
679 [in] WM_READER_CLIENTINFO *pClientInfo);
681 HRESULT GetMaxOutputSampleSize(
682 [in] DWORD dwOutput,
683 [out] DWORD *pcbMax);
685 HRESULT GetMaxStreamSampleSize(
686 [in] WORD wStream,
687 [out] DWORD *pcbMax);
689 HRESULT NotifyLateDelivery(
690 QWORD cnsLateness);
694 object,
695 uuid(ae14a945-b90c-4d0d-9127-80d665f7d73e),
696 pointer_default(unique),
697 local
699 interface IWMReaderAdvanced2 : IWMReaderAdvanced
701 HRESULT SetPlayMode(
702 [in] WMT_PLAY_MODE Mode);
704 HRESULT GetPlayMode(
705 [out] WMT_PLAY_MODE *pMode);
707 HRESULT GetBufferProgress(
708 [out] DWORD *pdwPercent,
709 [out] QWORD *pcnsBuffering);
711 HRESULT GetDownloadProgress(
712 [out] DWORD *pdwPercent,
713 [out] QWORD *pqwBytesDownloaded,
714 [out] QWORD *pcnsDownload);
716 HRESULT GetSaveAsProgress(
717 [out] DWORD *pdwPercent);
719 HRESULT SaveFileAs(
720 [in] const WCHAR *pwszFilename);
722 HRESULT GetProtocolName(
723 [out, size_is(*pcchProtocol)] WCHAR *pwszProtocol,
724 [in, out] DWORD *pcchProtocol);
726 HRESULT StartAtMarker(
727 [in] WORD wMarkerIndex,
728 [in] QWORD cnsDuration,
729 [in] float fRate,
730 [in] void *pvContext);
732 HRESULT GetOutputSetting(
733 [in] DWORD dwOutputNum,
734 [in] LPCWSTR pszName,
735 [out] WMT_ATTR_DATATYPE *pType,
736 [out, size_is(*pcbLength)] BYTE *pValue,
737 [in, out] WORD *pcbLength);
739 HRESULT SetOutputSetting(
740 [in] DWORD dwOutputNum,
741 [in] LPCWSTR pszName,
742 [in] WMT_ATTR_DATATYPE Type,
743 [in, size_is(cbLength)] const BYTE *pValue,
744 [in] WORD cbLength);
746 HRESULT Preroll(
747 [in] QWORD cnsStart,
748 [in] QWORD cnsDuration,
749 [in] float fRate);
751 HRESULT SetLogClientID(
752 [in] BOOL fLogClientID);
754 HRESULT GetLogClientID(
755 [out] BOOL *pfLogClientID);
757 HRESULT StopBuffering();
759 HRESULT OpenStream(
760 [in] IStream *pStream,
761 [in] IWMReaderCallback *pCallback,
762 [in] void *pvContext);
766 object,
767 uuid(5dc0674b-f04B-4a4e-9f2a-b1afde2c8100),
768 pointer_default(unique),
769 local
771 interface IWMReaderAdvanced3 : IWMReaderAdvanced2
773 HRESULT StopNetStreaming();
775 HRESULT StartAtPosition(
776 [in] WORD wStreamNum,
777 [in] void *pvOffsetStart,
778 [in] void *pvDuration,
779 [in] WMT_OFFSET_FORMAT dwOffsetFormat,
780 [in] float fRate,
781 [in] void *pvContext);
785 object,
786 uuid(945a76a2-12ae-4d48-bd3c-cd1d90399b85),
787 pointer_default(unique),
788 local
790 interface IWMReaderAdvanced4 : IWMReaderAdvanced3
792 HRESULT GetLanguageCount(
793 [in] DWORD dwOutputNum,
794 [out] WORD *pwLanguageCount);
796 HRESULT GetLanguage(
797 [in] DWORD dwOutputNum,
798 [in] WORD wLanguage,
799 [out, size_is(*pcchLanguageStringLength)] WCHAR *pwszLanguageString,
800 [in, out] WORD *pcchLanguageStringLength);
802 HRESULT GetMaxSpeedFactor(
803 [out] double *pdblFactor);
805 HRESULT IsUsingFastCache(
806 [out] BOOL *pfUsingFastCache);
808 HRESULT AddLogParam(
809 [in] LPCWSTR wszNameSpace,
810 [in] LPCWSTR wszName,
811 [in] LPCWSTR wszValue);
813 HRESULT SendLogParams();
815 HRESULT CanSaveFileAs(
816 [out] BOOL *pfCanSave);
818 HRESULT CancelSaveFileAs();
820 HRESULT GetURL(
821 [out, size_is(*pcchURL)] WCHAR *pwszURL,
822 [in, out] DWORD *pcchURL);
826 object,
827 uuid(24c44db0-55d1-49ae-a5cc-f13815e36363),
828 pointer_default(unique),
829 local
831 interface IWMReaderAdvanced5 : IWMReaderAdvanced4
833 HRESULT SetPlayerHook(
834 [in] DWORD dwOutputNum,
835 [in] IWMPlayerHook *pHook);
839 object,
840 uuid(18a2e7f8-428f-4acd-8a00-e64639bc93de),
841 pointer_default(unique),
842 local
844 interface IWMReaderAdvanced6 : IWMReaderAdvanced5
846 HRESULT SetProtectStreamSamples(
847 [in, size_is(cbCertificate)] BYTE *pbCertificate,
848 [in] DWORD cbCertificate,
849 [in] DWORD dwCertificateType,
850 [in] DWORD dwFlags,
851 [out, size_is(*pcbInitializationVector)] BYTE *pbInitializationVector,
852 [in, out] DWORD *pcbInitializationVector);
856 object,
857 uuid(9397f121-7705-4dc9-b049-98b698188414),
858 pointer_default( unique ),
859 local
861 interface IWMSyncReader : IUnknown
863 HRESULT Open(
864 [in] const WCHAR *pwszFilename);
866 HRESULT Close();
868 HRESULT SetRange(
869 [in] QWORD cnsStartTime,
870 [in] LONGLONG cnsDuration);
872 HRESULT SetRangeByFrame(
873 [in] WORD wStreamNum,
874 [in] QWORD qwFrameNumber,
875 [in] LONGLONG cFramesToRead);
877 HRESULT GetNextSample(
878 [in] WORD wStreamNum,
879 [out] INSSBuffer **ppSample,
880 [out] QWORD *pcnsSampleTime,
881 [out] QWORD *pcnsDuration,
882 [out] DWORD *pdwFlags,
883 [out] DWORD *pdwOutputNum,
884 [out] WORD *pwStreamNum);
886 HRESULT SetStreamsSelected(
887 [in] WORD cStreamCount,
888 [in] WORD *pwStreamNumbers,
889 [in] WMT_STREAM_SELECTION *pSelections);
891 HRESULT GetStreamSelected(
892 [in] WORD wStreamNum,
893 [out] WMT_STREAM_SELECTION *pSelection);
895 HRESULT SetReadStreamSamples(
896 [in] WORD wStreamNum,
897 [in] BOOL fCompressed);
899 HRESULT GetReadStreamSamples(
900 [in] WORD wStreamNum,
901 [out] BOOL *pfCompressed);
903 HRESULT GetOutputSetting(
904 [in] DWORD dwOutputNum,
905 [in] LPCWSTR pszName,
906 [out] WMT_ATTR_DATATYPE *pType,
907 [out, size_is(*pcbLength)] BYTE *pValue,
908 [in, out] WORD *pcbLength);
910 HRESULT SetOutputSetting(
911 [in] DWORD dwOutputNum,
912 [in] LPCWSTR pszName,
913 [in] WMT_ATTR_DATATYPE Type,
914 [in, size_is(cbLength)] const BYTE *pValue,
915 [in] WORD cbLength);
917 HRESULT GetOutputCount(
918 [out] DWORD *pcOutputs);
920 HRESULT GetOutputProps(
921 [in] DWORD dwOutputNum,
922 [out] IWMOutputMediaProps **ppOutput);
924 HRESULT SetOutputProps(
925 [in] DWORD dwOutputNum,
926 [in] IWMOutputMediaProps *pOutput);
928 HRESULT GetOutputFormatCount(
929 [in] DWORD dwOutputNum,
930 [out] DWORD *pcFormats);
932 HRESULT GetOutputFormat(
933 [in] DWORD dwOutputNum,
934 [in] DWORD dwFormatNum,
935 [out] IWMOutputMediaProps **ppProps);
937 HRESULT GetOutputNumberForStream(
938 [in] WORD wStreamNum,
939 [out] DWORD *pdwOutputNum);
941 HRESULT GetStreamNumberForOutput(
942 [in] DWORD dwOutputNum,
943 [out] WORD *pwStreamNum);
945 HRESULT GetMaxOutputSampleSize(
946 [in] DWORD dwOutput,
947 [out] DWORD *pcbMax);
949 HRESULT GetMaxStreamSampleSize(
950 [in] WORD wStream,
951 [out] DWORD *pcbMax);
953 HRESULT OpenStream(
954 [in] IStream *pStream);
958 object,
959 uuid(96406bd5-2b2b-11d3-b36b-00c04f6108ff),
960 pointer_default(unique),
961 local
963 interface IWMInputMediaProps : IWMMediaProps
965 HRESULT GetConnectionName(
966 [out, size_is(*pcchName)] WCHAR *pwszName,
967 [in, out] WORD *pcchName);
969 HRESULT GetGroupName(
970 [out, size_is(*pcchName)] WCHAR *pwszName,
971 [in, out] WORD *pcchName);
975 object,
976 uuid(96406be4-2b2b-11d3-b36b-00c04f6108ff),
977 pointer_default(unique),
978 local
980 interface IWMWriterSink : IUnknown
982 HRESULT OnHeader(
983 [in] INSSBuffer *pHeader);
985 HRESULT IsRealTime(
986 [out] BOOL *pfRealTime);
988 HRESULT AllocateDataUnit(
989 [in] DWORD cbDataUnit,
990 [out] INSSBuffer **ppDataUnit);
992 HRESULT OnDataUnit(
993 [in] INSSBuffer *pDataUnit);
995 HRESULT OnEndWriting();
999 object,
1000 uuid(96406bd4-2b2b-11d3-b36b-00c04f6108ff),
1001 pointer_default(unique),
1002 local
1004 interface IWMWriter : IUnknown
1006 HRESULT SetProfileByID(
1007 [in] REFGUID guidProfile);
1009 HRESULT SetProfile(
1010 [in] IWMProfile *pProfile);
1012 HRESULT SetOutputFilename(
1013 [in] const WCHAR *pwszFilename);
1015 HRESULT GetInputCount(
1016 [out] DWORD *pcInputs);
1018 HRESULT GetInputProps(
1019 [in] DWORD dwInputNum,
1020 [out] IWMInputMediaProps **ppInput);
1022 HRESULT SetInputProps(
1023 [in] DWORD dwInputNum,
1024 [in] IWMInputMediaProps *pInput);
1026 HRESULT GetInputFormatCount(
1027 [in] DWORD dwInputNumber,
1028 [out] DWORD *pcFormats);
1030 HRESULT GetInputFormat(
1031 [in] DWORD dwInputNumber,
1032 [in] DWORD dwFormatNumber,
1033 [out] IWMInputMediaProps **pProps);
1035 HRESULT BeginWriting();
1037 HRESULT EndWriting();
1039 HRESULT AllocateSample(
1040 [in] DWORD dwSampleSize,
1041 [out] INSSBuffer **ppSample);
1043 HRESULT WriteSample(
1044 [in] DWORD dwInputNum,
1045 [in] QWORD cnsSampleTime,
1046 [in] DWORD dwFlags,
1047 [in] INSSBuffer *pSample);
1049 HRESULT Flush();
1053 object,
1054 uuid(96406be3-2b2b-11d3-b36b-00C04f6108ff),
1055 pointer_default(unique),
1056 local
1058 interface IWMWriterAdvanced : IUnknown
1060 HRESULT GetSinkCount(
1061 [out] DWORD *pcSinks);
1063 HRESULT GetSink(
1064 [in] DWORD dwSinkNum,
1065 [out] IWMWriterSink **ppSink);
1067 HRESULT AddSink(
1068 [in] IWMWriterSink *pSink);
1070 HRESULT RemoveSink(
1071 [in] IWMWriterSink *pSink);
1073 HRESULT WriteStreamSample(
1074 [in] WORD wStreamNum,
1075 [in] QWORD cnsSampleTime,
1076 [in] DWORD msSampleSendTime,
1077 [in] QWORD cnsSampleDuration,
1078 [in] DWORD dwFlags,
1079 [in] INSSBuffer *pSample);
1081 HRESULT SetLiveSource(
1082 BOOL fIsLiveSource);
1084 HRESULT IsRealTime(
1085 [out] BOOL *pfRealTime);
1087 HRESULT GetWriterTime(
1088 [out] QWORD *pCurrentTime);
1090 HRESULT GetStatistics(
1091 [in] WORD wStreamNum,
1092 [out] WM_WRITER_STATISTICS *pStats);
1094 HRESULT SetSyncTolerance(
1095 [in] DWORD msWindow);
1097 HRESULT GetSyncTolerance(
1098 [out] DWORD *pmsWindow);
1102 object,
1103 uuid(962dc1ec-c046-4db8-9cc7-26ceae500817),
1104 pointer_default(unique),
1105 local
1107 interface IWMWriterAdvanced2 : IWMWriterAdvanced
1109 HRESULT GetInputSetting(
1110 [in] DWORD dwInputNum,
1111 [in] LPCWSTR pszName,
1112 [out] WMT_ATTR_DATATYPE *pType,
1113 [out, size_is(*pcbLength)] BYTE *pValue,
1114 [in, out] WORD *pcbLength);
1116 HRESULT SetInputSetting(
1117 [in] DWORD dwInputNum,
1118 [in] LPCWSTR pszName,
1119 [in] WMT_ATTR_DATATYPE Type,
1120 [in, size_is(cbLength)] const BYTE *pValue,
1121 [in] WORD cbLength);
1125 object,
1126 uuid(2cd6492d-7c37-4e76-9d3b-59261183a22e),
1127 pointer_default(unique),
1128 local
1130 interface IWMWriterAdvanced3 : IWMWriterAdvanced2
1132 HRESULT GetStatisticsEx(
1133 [in] WORD wStreamNum,
1134 [out] WM_WRITER_STATISTICS_EX *pStats);
1136 HRESULT SetNonBlocking();
1140 object,
1141 uuid(96406bda-2b2b-11d3-b36b-00c04f6108ff),
1142 pointer_default(unique),
1143 local
1145 interface IWMHeaderInfo : IUnknown
1147 HRESULT GetAttributeCount(
1148 [in] WORD stream_num,
1149 [out] WORD *attributes );
1151 HRESULT GetAttributeByIndex(
1152 [in] WORD index,
1153 [in, out] WORD *stream_num,
1154 [out, size_is( *name_len )] WCHAR *name,
1155 [in, out] WORD *name_len,
1156 [out] WMT_ATTR_DATATYPE *type,
1157 [out, size_is( *length )] BYTE *value,
1158 [in, out] WORD *length );
1160 HRESULT GetAttributeByName(
1161 [in, out] WORD *stream_num,
1162 [in] LPCWSTR name,
1163 [out] WMT_ATTR_DATATYPE *type,
1164 [out, size_is( *length )] BYTE *value,
1165 [in, out] WORD *length );
1167 HRESULT SetAttribute(
1168 [in] WORD stream_num,
1169 [in] LPCWSTR name,
1170 [in] WMT_ATTR_DATATYPE type,
1171 [in, size_is( length )] const BYTE *value,
1172 [in] WORD length );
1174 HRESULT GetMarkerCount(
1175 [out] WORD *markers );
1177 HRESULT GetMarker(
1178 [in] WORD index,
1179 [out, size_is( *marker_len )] WCHAR *marker_name,
1180 [in, out] WORD *marker_len,
1181 [out] QWORD *marker_time );
1183 HRESULT AddMarker(
1184 [in] LPCWSTR_WMSDK_TYPE_SAFE marker_name,
1185 [in] QWORD marker_time );
1187 HRESULT RemoveMarker(
1188 [in] WORD index );
1190 HRESULT GetScriptCount(
1191 [out] WORD *scripts );
1193 HRESULT GetScript(
1194 [in] WORD index,
1195 [out, size_is( *type_len )] WCHAR *type,
1196 [in, out] WORD *type_len,
1197 [out, size_is( *command_len )] WCHAR *command,
1198 [in, out] WORD *command_len,
1199 [out] QWORD *script_time );
1201 HRESULT AddScript(
1202 [in] LPCWSTR_WMSDK_TYPE_SAFE type,
1203 [in] LPCWSTR_WMSDK_TYPE_SAFE command,
1204 [in] QWORD script_time );
1206 HRESULT RemoveScript(
1207 [in] WORD index );
1211 object,
1212 uuid(15cf9781-454e-482e-b393-85fae487a810),
1213 pointer_default(unique),
1214 local
1216 interface IWMHeaderInfo2 : IWMHeaderInfo
1218 HRESULT GetCodecInfoCount(
1219 [out] DWORD *codec_infos );
1221 HRESULT GetCodecInfo(
1222 [in] DWORD index,
1223 [in, out] WORD *name_len,
1224 [out, size_is( *name_len )] WCHAR *name,
1225 [in, out] WORD *description_len,
1226 [out, size_is( *description_len )] WCHAR *description,
1227 [out] WMT_CODEC_INFO_TYPE *codec_type,
1228 [in, out] WORD *codec_info_cnt,
1229 [out, size_is( *codec_info_cnt )] BYTE *codec_info );
1233 object,
1234 uuid(15cc68e3-27cc-4ecd-b222-3f5d02d80bd5),
1235 pointer_default(unique),
1236 local
1238 interface IWMHeaderInfo3 : IWMHeaderInfo2
1240 HRESULT GetAttributeCountEx(
1241 [in] WORD stream_num,
1242 [out] WORD *attributes );
1244 HRESULT GetAttributeIndices(
1245 [in] WORD stream_num,
1246 [in] LPCWSTR name,
1247 [in] WORD *lang_index,
1248 [out, size_is( *count )] WORD *indices,
1249 [in, out] WORD *count );
1251 HRESULT GetAttributeByIndexEx(
1252 [in] WORD stream_num,
1253 [in] WORD index,
1254 [out, size_is( *name_len )] LPWSTR name,
1255 [in, out] WORD *name_len,
1256 [out] WMT_ATTR_DATATYPE *type,
1257 [out] WORD *lang_index,
1258 [out, size_is( *data_len )] BYTE *value,
1259 [in, out] DWORD *data_len );
1261 HRESULT ModifyAttribute(
1262 [in] WORD stream_num,
1263 [in] WORD index,
1264 [in] WMT_ATTR_DATATYPE type,
1265 [in] WORD lang_index,
1266 [in, size_is( length )] const BYTE *value,
1267 [in] DWORD length );
1269 HRESULT AddAttribute(
1270 [in] WORD stream_num,
1271 [in] LPCWSTR name,
1272 [out] WORD *index,
1273 [in] WMT_ATTR_DATATYPE type,
1274 [in] WORD lang_index,
1275 [in, size_is( length )] const BYTE *value,
1276 [in] DWORD length );
1278 HRESULT DeleteAttribute(
1279 [in] WORD stream_num,
1280 [in] WORD index );
1282 HRESULT AddCodecInfo(
1283 [in] LPCWSTR_WMSDK_TYPE_SAFE name,
1284 [in] LPCWSTR_WMSDK_TYPE_SAFE description,
1285 [in] WMT_CODEC_INFO_TYPE codec_type,
1286 [in] WORD codec_info_cnt,
1287 [in, size_is( codec_info_cnt )] BYTE *codec_info );
1291 object,
1292 uuid(96406bec-2b2b-11d3-b36b-00c04f6108ff),
1293 pointer_default(unique),
1294 local
1296 interface IWMReaderNetworkConfig : IUnknown
1298 HRESULT GetBufferingTime([out] QWORD *buffering_time);
1299 HRESULT SetBufferingTime([in] QWORD buffering_time);
1301 HRESULT GetUDPPortRanges(
1302 [out, size_is( *ranges )] WM_PORT_NUMBER_RANGE *array,
1303 [in, out] DWORD *ranges);
1305 HRESULT SetUDPPortRanges(
1306 [in, size_is( ranges )] WM_PORT_NUMBER_RANGE *array,
1307 [in] DWORD ranges);
1309 HRESULT GetProxySettings(
1310 [in] const WCHAR *protocol,
1311 [out] WMT_PROXY_SETTINGS *proxy);
1313 HRESULT SetProxySettings(
1314 [in] LPCWSTR protocol,
1315 [in] WMT_PROXY_SETTINGS proxy);
1317 HRESULT GetProxyHostName(
1318 [in] const WCHAR *protocol,
1319 [out, size_is( *size )] WCHAR *hostname,
1320 [in, out] DWORD *size);
1322 HRESULT SetProxyHostName(
1323 [in] const WCHAR *protocol,
1324 [in] const WCHAR *hostname);
1326 HRESULT GetProxyPort(
1327 [in] const WCHAR *protocol,
1328 [out] DWORD *port);
1330 HRESULT SetProxyPort(
1331 [in] const WCHAR *protocol,
1332 [in] DWORD port);
1334 HRESULT GetProxyExceptionList(
1335 [in] const WCHAR *protocol,
1336 [out, size_is( *count )] WCHAR *exceptions,
1337 [in, out] DWORD *count);
1339 HRESULT SetProxyExceptionList(
1340 [in] const WCHAR *protocol,
1341 [in] const WCHAR *exceptions);
1343 HRESULT GetProxyBypassForLocal(
1344 [in] const WCHAR *protocol,
1345 [out] BOOL *bypass);
1347 HRESULT SetProxyBypassForLocal(
1348 [in] const WCHAR *protocol,
1349 [in] BOOL bypass);
1351 HRESULT GetForceRerunAutoProxyDetection([out] BOOL *detection);
1352 HRESULT SetForceRerunAutoProxyDetection([in] BOOL detection);
1354 HRESULT GetEnableMulticast([out] BOOL *multicast);
1355 HRESULT SetEnableMulticast([in] BOOL multicast);
1357 HRESULT GetEnableHTTP([out] BOOL *enable);
1358 HRESULT SetEnableHTTP([in] BOOL enable);
1360 HRESULT GetEnableUDP([out] BOOL *enable);
1361 HRESULT SetEnableUDP([in] BOOL enable);
1363 HRESULT GetEnableTCP([out] BOOL *enable);
1364 HRESULT SetEnableTCP([in] BOOL enable);
1366 HRESULT ResetProtocolRollover();
1368 HRESULT GetConnectionBandwidth([out] DWORD *bandwidth);
1369 HRESULT SetConnectionBandwidth([in] DWORD bandwidth);
1371 HRESULT GetNumProtocolsSupported([out] DWORD *protocols);
1373 HRESULT GetSupportedProtocolName(
1374 [in] DWORD protocol_num,
1375 [out, size_is( *size )] WCHAR *protocol,
1376 [in, out] DWORD *size);
1378 HRESULT AddLoggingUrl([in] const WCHAR *url);
1380 HRESULT GetLoggingUrl(
1381 [in] DWORD index,
1382 [out, size_is( *size )] WCHAR *url,
1383 [in, out] DWORD *size);
1385 HRESULT GetLoggingUrlCount([out] DWORD *count);
1387 HRESULT ResetLoggingUrlList();
1391 object,
1392 uuid(d979a853-042b-4050-8387-c939db22013f),
1393 pointer_default(unique),
1394 local
1396 interface IWMReaderNetworkConfig2 : IWMReaderNetworkConfig
1398 HRESULT GetEnableContentCaching([out] BOOL *enable);
1399 HRESULT SetEnableContentCaching([in] BOOL enable);
1401 HRESULT GetEnableFastCache([out] BOOL *enable);
1402 HRESULT SetEnableFastCache([in] BOOL enable);
1404 HRESULT GetAcceleratedStreamingDuration([out] QWORD *duration);
1405 HRESULT SetAcceleratedStreamingDuration([in] QWORD duration);
1407 HRESULT GetAutoReconnectLimit([out] DWORD *limit);
1408 HRESULT SetAutoReconnectLimit([in] DWORD limit);
1410 HRESULT GetEnableResends([out] BOOL *enable);
1411 HRESULT SetEnableResends([in] BOOL enable);
1413 HRESULT GetEnableThinning([out] BOOL *enable);
1414 HRESULT SetEnableThinning([in] BOOL enable);
1416 HRESULT GetMaxNetPacketSize([out] DWORD *packet_size);
1420 object,
1421 uuid(96406bed-2b2b-11d3-b36b-00c04f6108ff),
1422 pointer_default(unique),
1423 local
1426 interface IWMReaderStreamClock : IUnknown
1428 HRESULT GetTime([in] QWORD *now);
1430 HRESULT SetTimer([in] QWORD when,
1431 [in] void *param,
1432 [out] DWORD *id);
1434 HRESULT KillTimer([in] DWORD id);
1438 object,
1439 uuid(cdfb97ab-188f-40b3-b643-5b7903975c59),
1440 pointer_default(unique),
1441 local
1443 interface IWMPacketSize : IUnknown
1445 HRESULT GetMaxPacketSize([out] DWORD *size);
1446 HRESULT SetMaxPacketSize([in] DWORD size);
1450 object,
1451 uuid(8bfc2b9e-b646-4233-a877-1c6a079669dc),
1452 pointer_default(unique),
1453 local
1455 interface IWMPacketSize2 : IWMPacketSize
1457 HRESULT GetMinPacketSize([out] DWORD *size);
1458 HRESULT SetMinPacketSize([in] DWORD size);
1462 object,
1463 uuid(d2827540-3ee7-432c-b14c-dc17f085d3b3),
1464 pointer_default(unique),
1465 local
1467 interface IWMDRMReader : IUnknown
1469 HRESULT AcquireLicense([in] DWORD flags);
1470 HRESULT CancelLicenseAcquisition();
1472 HRESULT Individualize([in] DWORD flags);
1473 HRESULT CancelIndividualization();
1475 HRESULT MonitorLicenseAcquisition();
1476 HRESULT CancelMonitorLicenseAcquisition();
1478 HRESULT SetDRMProperty(
1479 [in] const WCHAR *name,
1480 [in] WMT_ATTR_DATATYPE type,
1481 [in, size_is( length )] const BYTE *value,
1482 [in] WORD length);
1484 HRESULT GetDRMProperty(
1485 [in] const WCHAR *name,
1486 [out] WMT_ATTR_DATATYPE *type,
1487 [out, size_is( *length )] BYTE *value,
1488 [in, out] WORD *length);
1492 object,
1493 uuid(befe7a75-9f1d-4075-b9d9-a3c37bda49a0),
1494 pointer_default(unique),
1495 local
1497 interface IWMDRMReader2 : IWMDRMReader
1499 HRESULT SetEvaluateOutputLevelLicenses([in] BOOL evaluate);
1500 HRESULT GetPlayOutputLevels(
1501 [out, size_is( *length )] DRM_PLAY_OPL *play,
1502 [in, out] DWORD *length,
1503 [out] DWORD *level);
1505 HRESULT GetCopyOutputLevels(
1506 [out, size_is( *length )] DRM_COPY_OPL *copy,
1507 [in, out] DWORD *length,
1508 [out] DWORD *level);
1510 HRESULT TryNextLicense();
1514 object,
1515 uuid(e08672de-f1e7-4ff4-a0a3-fc4b08e4caf8),
1516 pointer_default(unique),
1517 local
1519 interface IWMDRMReader3 : IWMDRMReader2
1521 HRESULT GetInclusionList(
1522 [out] GUID **guids,
1523 [out] DWORD *count);
1527 object,
1528 uuid(bddc4d08-944d-4d52-a612-46c3fda07dd4),
1529 pointer_default( unique ),
1530 local
1532 interface IWMReaderAccelerator : IUnknown
1534 HRESULT GetCodecInterface(
1535 [in] DWORD output,
1536 [in] REFIID riid,
1537 [out] void **codec);
1539 HRESULT Notify(
1540 [in] DWORD output,
1541 [in] WM_MEDIA_TYPE *subtype);
1545 object,
1546 uuid(f369e2f0-e081-4fe6-8450-b810b2f410d1),
1547 pointer_default(unique),
1548 local
1550 interface IWMReaderTimecode : IUnknown
1552 HRESULT GetTimecodeRangeCount(
1553 [in] WORD num,
1554 [out] WORD *count);
1556 HRESULT GetTimecodeRangeBounds(
1557 [in] WORD stream,
1558 [in] WORD range,
1559 [out] DWORD *start_timecode,
1560 [out] DWORD *end_timecode);
1564 object,
1565 uuid(fdbe5592-81a1-41ea-93bd-735cad1adc05),
1566 pointer_default(unique),
1567 local
1569 interface IWMReaderTypeNegotiation : IUnknown
1571 HRESULT TryOutputProps(
1572 [in] DWORD output,
1573 [in] IWMOutputMediaProps *props);
1576 cpp_quote("HRESULT WINAPI WMCreateWriter(IUnknown*,IWMWriter**);")
1577 cpp_quote("HRESULT WINAPI WMCreateReader(IUnknown*,DWORD,IWMReader**);")
1579 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_Base, 0x00000000,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1580 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Video, 0x73646976,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1581 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB1, 0xe436eb78,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1582 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB4, 0xe436eb79,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1583 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB8, 0xe436eb7a,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1584 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB565, 0xe436eb7b,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1585 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB555, 0xe436eb7c,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1586 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB24, 0xe436eb7d,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1587 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_RGB32, 0xe436eb7e,0x524f,0x11ce,0x9f,0x53,0x00,0x20,0xaf,0x0b,0xa7,0x70);")
1588 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_I420, 0x30323449,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1589 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_IYUV, 0x56555949,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1590 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YV12, 0x32315659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1591 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YUY2, 0x32595559,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1592 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_P422, 0x32323450,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1593 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_UYVY, 0x59565955,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1594 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVYU, 0x55595659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1595 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_YVU9, 0x39555659,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1596 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_VIDEOIMAGE, 0x1d4a45f2,0xe5f6,0x4b44,0x83,0x88,0xf0,0xae,0x5c,0x0e,0x0c,0x37);")
1597 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP43, 0x3334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1598 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MP4S, 0x5334504d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1599 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_M4S2, 0x3253344d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1600 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV1, 0x31564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1601 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV2, 0x32564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1602 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS1, 0x3153534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1603 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MPEG2_VIDEO, 0xe06d8026,0xdb46,0x11cf,0xb4,0xd1,0x00,0x80,0x5f,0x6c,0xbb,0xea);")
1604 cpp_quote("EXTERN_GUID(WMMEDIATYPE_Audio, 0x73647561,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1605 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_PCM, 0x00000001,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1606 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_DRM, 0x00000009,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1607 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudioV9, 0x00000162,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1608 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMAudio_Lossless, 0x00000163,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1609 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_MSS2, 0x3253534d,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1610 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP1, 0x0000000a,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1611 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMSP2, 0x0000000b,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1612 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMV3, 0x33564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1613 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVP, 0x50564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1614 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVP2, 0x32505657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1615 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WMVA, 0x41564d57,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")
1616 cpp_quote("EXTERN_GUID(WMMEDIASUBTYPE_WVC1, 0x31435657,0x0000,0x0010,0x80,0x00,0x00,0xaa,0x00,0x38,0x9b,0x71);")