1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
#![allow(non_snake_case)]
use super::HRESULT;
use super::BSTR;
use super::VARIANT_BOOL;
use super::IEnumVARIANT;
use windows::Win32::System::Com::IDispatch;
use windows::Win32::System::Com::IDispatch_Impl;
use windows::Win32::System::Com::IDispatch_Vtbl;
use windows::Win32::System::Com::VARIANT;
use super::com_enums::*;
type DATE = f64; type LONG = i32;
type DOUBLE = f64;
#[windows::core::interface("9FAB0E27-70D7-4E3A-9965-B0C8B8869BB6")]
pub unsafe trait IITObject : IDispatch {
pub unsafe fn GetITObjectIDs(&self, sourceID: *mut LONG, playlistID: *mut LONG, trackID: *mut LONG, databaseID: *mut LONG) -> HRESULT;
pub unsafe fn Name(&self, Name: *mut BSTR) -> HRESULT;
pub unsafe fn set_Name(&self, Name: BSTR) -> HRESULT;
pub unsafe fn Index(&self, Index: *mut LONG) -> HRESULT;
pub unsafe fn sourceID(&self, sourceID: *mut LONG) -> HRESULT;
pub unsafe fn playlistID(&self, playlistID: *mut LONG) -> HRESULT;
pub unsafe fn trackID(&self, trackID: *mut LONG) -> HRESULT;
pub unsafe fn TrackDatabaseID(&self, databaseID: *mut LONG) -> HRESULT;
}
#[windows::core::interface("AEC1C4D3-AEF1-4255-B892-3E3D13ADFDF9")]
pub unsafe trait IITSource : IITObject {
pub unsafe fn Kind(&self, Kind: *mut ITSourceKind) -> HRESULT;
pub unsafe fn Capacity(&self, Capacity: *mut DOUBLE) -> HRESULT;
pub unsafe fn FreeSpace(&self, FreeSpace: *mut DOUBLE) -> HRESULT;
pub unsafe fn Playlists(&self, iPlaylistCollection: *mut Option<IITPlaylistCollection>) -> HRESULT;
}
#[windows::core::interface("FF194254-909D-4437-9C50-3AAC2AE6305C")]
pub unsafe trait IITPlaylistCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
pub unsafe fn ItemByPersistentID(&self, highID: LONG, lowID: LONG, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
}
#[windows::core::interface("3D5E072F-2A77-4B17-9E73-E03B77CCCCA9")]
pub unsafe trait IITPlaylist : IITObject {
pub unsafe fn Delete(&self) -> HRESULT;
pub unsafe fn PlayFirstTrack(&self) -> HRESULT;
pub unsafe fn Print(&self, showPrintDialog: VARIANT_BOOL, printKind: ITPlaylistPrintKind, theme: BSTR) -> HRESULT;
pub unsafe fn Search(&self, searchText: BSTR, searchFields: ITPlaylistSearchField, iTrackCollection: *mut Option<IITTrackCollection>) -> HRESULT;
pub unsafe fn Kind(&self, Kind: *mut ITPlaylistKind) -> HRESULT;
pub unsafe fn Source(&self, iSource: *mut Option<IITSource>) -> HRESULT;
pub unsafe fn Duration(&self, Duration: *mut LONG) -> HRESULT;
pub unsafe fn Shuffle(&self, isShuffle: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Shuffle(&self, isShuffle: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Size(&self, Size: *mut DOUBLE) -> HRESULT;
pub unsafe fn SongRepeat(&self, repeatMode: *mut ITPlaylistRepeatMode) -> HRESULT;
pub unsafe fn set_SongRepeat(&self, repeatMode: ITPlaylistRepeatMode) -> HRESULT;
pub unsafe fn Time(&self, Time: *mut BSTR) -> HRESULT;
pub unsafe fn Visible(&self, isVisible: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Tracks(&self, iTrackCollection: *mut Option<IITTrackCollection>) -> HRESULT;
}
#[windows::core::interface("755D76F1-6B85-4CE4-8F5F-F88D9743DCD8")]
pub unsafe trait IITTrackCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iTrack: *mut Option<IITTrack>) -> HRESULT;
pub unsafe fn ItemByPlayOrder(&self, Index: LONG, iTrack: *mut Option<IITTrack>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iTrack: *mut Option<IITTrack>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
pub unsafe fn ItemByPersistentID(&self, highID: LONG, lowID: LONG, iTrack: *mut Option<IITTrack>) -> HRESULT;
}
#[windows::core::interface("4CB0915D-1E54-4727-BAF3-CE6CC9A225A1")]
pub unsafe trait IITTrack : IITObject {
pub unsafe fn Delete(&self) -> HRESULT;
pub unsafe fn Play(&self) -> HRESULT;
pub unsafe fn AddArtworkFromFile(&self, filePath: BSTR, iArtwork: *mut Option<IITArtwork>) -> HRESULT;
pub unsafe fn Kind(&self, Kind: *mut ITTrackKind) -> HRESULT;
pub unsafe fn Playlist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn Album(&self, Album: *mut BSTR) -> HRESULT;
pub unsafe fn set_Album(&self, Album: BSTR) -> HRESULT;
pub unsafe fn Artist(&self, Artist: *mut BSTR) -> HRESULT;
pub unsafe fn set_Artist(&self, Artist: BSTR) -> HRESULT;
pub unsafe fn BitRate(&self, BitRate: *mut LONG) -> HRESULT;
pub unsafe fn BPM(&self, beatsPerMinute: *mut LONG) -> HRESULT;
pub unsafe fn set_BPM(&self, beatsPerMinute: LONG) -> HRESULT;
pub unsafe fn Comment(&self, Comment: *mut BSTR) -> HRESULT;
pub unsafe fn set_Comment(&self, Comment: BSTR) -> HRESULT;
pub unsafe fn Compilation(&self, isCompilation: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Compilation(&self, isCompilation: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Composer(&self, Composer: *mut BSTR) -> HRESULT;
pub unsafe fn set_Composer(&self, Composer: BSTR) -> HRESULT;
pub unsafe fn DateAdded(&self, DateAdded: *mut DATE) -> HRESULT;
pub unsafe fn DiscCount(&self, DiscCount: *mut LONG) -> HRESULT;
pub unsafe fn set_DiscCount(&self, DiscCount: LONG) -> HRESULT;
pub unsafe fn DiscNumber(&self, DiscNumber: *mut LONG) -> HRESULT;
pub unsafe fn set_DiscNumber(&self, DiscNumber: LONG) -> HRESULT;
pub unsafe fn Duration(&self, Duration: *mut LONG) -> HRESULT;
pub unsafe fn Enabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Enabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT;
pub unsafe fn EQ(&self, EQ: *mut BSTR) -> HRESULT;
pub unsafe fn set_EQ(&self, EQ: BSTR) -> HRESULT;
pub unsafe fn set_Finish(&self, Finish: LONG) -> HRESULT;
pub unsafe fn Finish(&self, Finish: *mut LONG) -> HRESULT;
pub unsafe fn Genre(&self, Genre: *mut BSTR) -> HRESULT;
pub unsafe fn set_Genre(&self, Genre: BSTR) -> HRESULT;
pub unsafe fn Grouping(&self, Grouping: *mut BSTR) -> HRESULT;
pub unsafe fn set_Grouping(&self, Grouping: BSTR) -> HRESULT;
pub unsafe fn KindAsString(&self, Kind: *mut BSTR) -> HRESULT;
pub unsafe fn ModificationDate(&self, dateModified: *mut DATE) -> HRESULT;
pub unsafe fn PlayedCount(&self, PlayedCount: *mut LONG) -> HRESULT;
pub unsafe fn set_PlayedCount(&self, PlayedCount: LONG) -> HRESULT;
pub unsafe fn PlayedDate(&self, PlayedDate: *mut DATE) -> HRESULT;
pub unsafe fn set_PlayedDate(&self, PlayedDate: DATE) -> HRESULT;
pub unsafe fn PlayOrderIndex(&self, Index: *mut LONG) -> HRESULT;
pub unsafe fn Rating(&self, Rating: *mut LONG) -> HRESULT;
pub unsafe fn set_Rating(&self, Rating: LONG) -> HRESULT;
pub unsafe fn SampleRate(&self, SampleRate: *mut LONG) -> HRESULT;
pub unsafe fn Size(&self, Size: *mut LONG) -> HRESULT;
pub unsafe fn Start(&self, Start: *mut LONG) -> HRESULT;
pub unsafe fn set_Start(&self, Start: LONG) -> HRESULT;
pub unsafe fn Time(&self, Time: *mut BSTR) -> HRESULT;
pub unsafe fn TrackCount(&self, TrackCount: *mut LONG) -> HRESULT;
pub unsafe fn set_TrackCount(&self, TrackCount: LONG) -> HRESULT;
pub unsafe fn TrackNumber(&self, TrackNumber: *mut LONG) -> HRESULT;
pub unsafe fn set_TrackNumber(&self, TrackNumber: LONG) -> HRESULT;
pub unsafe fn VolumeAdjustment(&self, VolumeAdjustment: *mut LONG) -> HRESULT;
pub unsafe fn set_VolumeAdjustment(&self, VolumeAdjustment: LONG) -> HRESULT;
pub unsafe fn Year(&self, Year: *mut LONG) -> HRESULT;
pub unsafe fn set_Year(&self, Year: LONG) -> HRESULT;
pub unsafe fn Artwork(&self, iArtworkCollection: *mut Option<IITArtworkCollection>) -> HRESULT;
}
#[windows::core::interface("D0A6C1F8-BF3D-4CD8-AC47-FE32BDD17257")]
pub unsafe trait IITArtwork : IDispatch {
pub unsafe fn Delete(&self) -> HRESULT;
pub unsafe fn SetArtworkFromFile(&self, filePath: BSTR) -> HRESULT;
pub unsafe fn SaveArtworkToFile(&self, filePath: BSTR) -> HRESULT;
pub unsafe fn Format(&self, Format: *mut ITArtworkFormat) -> HRESULT;
pub unsafe fn IsDownloadedArtwork(&self, IsDownloadedArtwork: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Description(&self, Description: *mut BSTR) -> HRESULT;
pub unsafe fn set_Description(&self, Description: BSTR) -> HRESULT;
}
#[windows::core::interface("BF2742D7-418C-4858-9AF9-2981B062D23E")]
pub unsafe trait IITArtworkCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iArtwork: *mut Option<IITArtwork>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
}
#[windows::core::interface("2FF6CE20-FF87-4183-B0B3-F323D047AF41")]
pub unsafe trait IITSourceCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iSource: *mut Option<IITSource>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iSource: *mut Option<IITSource>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
pub unsafe fn ItemByPersistentID(&self, highID: LONG, lowID: LONG, iSource: *mut Option<IITSource>) -> HRESULT;
}
#[windows::core::interface("1CF95A1C-55FE-4F45-A2D3-85AC6C504A73")]
pub unsafe trait IITEncoder : IDispatch {
pub unsafe fn Name(&self, Name: *mut BSTR) -> HRESULT;
pub unsafe fn Format(&self, Format: *mut BSTR) -> HRESULT;
}
#[windows::core::interface("8862BCA9-168D-4549-A9D5-ADB35E553BA6")]
pub unsafe trait IITEncoderCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iEncoder: *mut Option<IITEncoder>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iEncoder: *mut Option<IITEncoder>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
}
#[windows::core::interface("5BE75F4F-68FA-4212-ACB7-BE44EA569759")]
pub unsafe trait IITEQPreset : IDispatch {
pub unsafe fn Name(&self, Name: *mut BSTR) -> HRESULT;
pub unsafe fn Modifiable(&self, isModifiable: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Preamp(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Preamp(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band1(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band1(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band2(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band2(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band3(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band3(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band4(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band4(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band5(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band5(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band6(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band6(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band7(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band7(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band8(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band8(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band9(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band9(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Band10(&self, level: *mut DOUBLE) -> HRESULT;
pub unsafe fn set_Band10(&self, level: DOUBLE) -> HRESULT;
pub unsafe fn Delete(&self, updateAllTracks: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Rename(&self, newName: BSTR, updateAllTracks: VARIANT_BOOL) -> HRESULT;
}
#[windows::core::interface("AEF4D111-3331-48DA-B0C2-B468D5D61D08")]
pub unsafe trait IITEQPresetCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iEQPreset: *mut Option<IITEQPreset>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iEQPreset: *mut Option<IITEQPreset>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
}
#[windows::core::interface("206479C9-FE32-4F9B-A18A-475AC939B479")]
pub unsafe trait IITOperationStatus : IDispatch {
pub unsafe fn InProgress(&self, isInProgress: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Tracks(&self, iTrackCollection: *mut Option<IITTrackCollection>) -> HRESULT;
}
#[windows::core::interface("7063AAF6-ABA0-493B-B4FC-920A9F105875")]
pub unsafe trait IITConvertOperationStatus : IITOperationStatus {
pub unsafe fn GetConversionStatus(&self, trackName: *mut BSTR, progressValue: *mut LONG, maxProgressValue: *mut LONG) -> HRESULT;
pub unsafe fn StopConversion(&self) -> HRESULT;
pub unsafe fn trackName(&self, trackName: *mut BSTR) -> HRESULT;
pub unsafe fn progressValue(&self, progressValue: *mut LONG) -> HRESULT;
pub unsafe fn maxProgressValue(&self, maxProgressValue: *mut LONG) -> HRESULT;
}
#[windows::core::interface("53AE1704-491C-4289-94A0-958815675A3D")]
pub unsafe trait IITLibraryPlaylist : IITPlaylist {
pub unsafe fn AddFile(&self, filePath: BSTR, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn AddFiles(&self, filePaths: *const VARIANT, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn AddURL(&self, URL: BSTR, iURLTrack: *mut Option<IITURLTrack>) -> HRESULT;
pub unsafe fn AddTrack(&self, iTrackToAdd: *const VARIANT, iAddedTrack: *mut Option<IITTrack>) -> HRESULT;
}
#[windows::core::interface("1116E3B5-29FD-4393-A7BD-454E5E327900")]
pub unsafe trait IITURLTrack : IITTrack {
pub unsafe fn URL(&self, URL: *mut BSTR) -> HRESULT;
pub unsafe fn set_URL(&self, URL: BSTR) -> HRESULT;
pub unsafe fn Podcast(&self, isPodcast: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn UpdatePodcastFeed(&self) -> HRESULT;
pub unsafe fn DownloadPodcastEpisode(&self) -> HRESULT;
pub unsafe fn Category(&self, Category: *mut BSTR) -> HRESULT;
pub unsafe fn set_Category(&self, Category: BSTR) -> HRESULT;
pub unsafe fn Description(&self, Description: *mut BSTR) -> HRESULT;
pub unsafe fn set_Description(&self, Description: BSTR) -> HRESULT;
pub unsafe fn LongDescription(&self, LongDescription: *mut BSTR) -> HRESULT;
pub unsafe fn set_LongDescription(&self, LongDescription: BSTR) -> HRESULT;
pub unsafe fn Reveal(&self) -> HRESULT;
pub unsafe fn AlbumRating(&self, Rating: *mut LONG) -> HRESULT;
pub unsafe fn set_AlbumRating(&self, Rating: LONG) -> HRESULT;
pub unsafe fn AlbumRatingKind(&self, ratingKind: *mut ITRatingKind) -> HRESULT;
pub unsafe fn ratingKind(&self, ratingKind: *mut ITRatingKind) -> HRESULT;
pub unsafe fn Playlists(&self, iPlaylistCollection: *mut Option<IITPlaylistCollection>) -> HRESULT;
}
#[windows::core::interface("0A504DED-A0B5-465A-8A94-50E20D7DF692")]
pub unsafe trait IITUserPlaylist : IITPlaylist {
pub unsafe fn AddFile(&self, filePath: BSTR, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn AddFiles(&self, filePaths: *const VARIANT, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn AddURL(&self, URL: BSTR, iURLTrack: *mut Option<IITURLTrack>) -> HRESULT;
pub unsafe fn AddTrack(&self, iTrackToAdd: *const VARIANT, iAddedTrack: *mut Option<IITTrack>) -> HRESULT;
pub unsafe fn Shared(&self, isShared: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Shared(&self, isShared: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Smart(&self, isSmart: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn SpecialKind(&self, SpecialKind: *mut ITUserPlaylistSpecialKind) -> HRESULT;
pub unsafe fn Parent(&self, iParentPlayList: *mut Option<IITUserPlaylist>) -> HRESULT;
pub unsafe fn CreatePlaylist(&self, playlistName: BSTR, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn CreateFolder(&self, folderName: BSTR, iFolder: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn set_Parent(&self, iParentPlayList: *const VARIANT) -> HRESULT;
pub unsafe fn Reveal(&self) -> HRESULT;
}
#[windows::core::interface("340F3315-ED72-4C09-9ACF-21EB4BDF9931")]
pub unsafe trait IITVisual : IDispatch {
pub unsafe fn Name(&self, Name: *mut BSTR) -> HRESULT;
}
#[windows::core::interface("88A4CCDD-114F-4043-B69B-84D4E6274957")]
pub unsafe trait IITVisualCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iVisual: *mut Option<IITVisual>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iVisual: *mut Option<IITVisual>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
}
#[windows::core::interface("370D7BE0-3A89-4A42-B902-C75FC138BE09")]
pub unsafe trait IITWindow : IDispatch {
pub unsafe fn Name(&self, Name: *mut BSTR) -> HRESULT;
pub unsafe fn Kind(&self, Kind: *mut ITWindowKind) -> HRESULT;
pub unsafe fn Visible(&self, isVisible: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Visible(&self, isVisible: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Resizable(&self, isResizable: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Minimized(&self, isMinimized: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Minimized(&self, isMinimized: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Maximizable(&self, isMaximizable: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Maximized(&self, isMaximized: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Maximized(&self, isMaximized: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Zoomable(&self, isZoomable: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Zoomed(&self, isZoomed: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Zoomed(&self, isZoomed: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Top(&self, Top: *mut LONG) -> HRESULT;
pub unsafe fn set_Top(&self, Top: LONG) -> HRESULT;
pub unsafe fn Left(&self, Left: *mut LONG) -> HRESULT;
pub unsafe fn set_Left(&self, Left: LONG) -> HRESULT;
pub unsafe fn Bottom(&self, Bottom: *mut LONG) -> HRESULT;
pub unsafe fn set_Bottom(&self, Bottom: LONG) -> HRESULT;
pub unsafe fn Right(&self, Right: *mut LONG) -> HRESULT;
pub unsafe fn set_Right(&self, Right: LONG) -> HRESULT;
pub unsafe fn Width(&self, Width: *mut LONG) -> HRESULT;
pub unsafe fn set_Width(&self, Width: LONG) -> HRESULT;
pub unsafe fn Height(&self, Height: *mut LONG) -> HRESULT;
pub unsafe fn set_Height(&self, Height: LONG) -> HRESULT;
}
#[windows::core::interface("C999F455-C4D5-4AA4-8277-F99753699974")]
pub unsafe trait IITBrowserWindow : IITWindow {
pub unsafe fn MiniPlayer(&self, isMiniPlayer: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_MiniPlayer(&self, isMiniPlayer: VARIANT_BOOL) -> HRESULT;
pub unsafe fn SelectedTracks(&self, iTrackCollection: *mut Option<IITTrackCollection>) -> HRESULT;
pub unsafe fn SelectedPlaylist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn set_SelectedPlaylist(&self, iPlaylist: *const VARIANT) -> HRESULT;
}
#[windows::core::interface("3D8DE381-6C0E-481F-A865-E2385F59FA43")]
pub unsafe trait IITWindowCollection : IDispatch {
pub unsafe fn Count(&self, Count: *mut LONG) -> HRESULT;
pub unsafe fn Item(&self, Index: LONG, iWindow: *mut Option<IITWindow>) -> HRESULT;
pub unsafe fn ItemByName(&self, Name: BSTR, iWindow: *mut Option<IITWindow>) -> HRESULT;
pub unsafe fn _NewEnum(&self, iEnumerator: *mut Option<IEnumVARIANT>) -> HRESULT;
}
#[windows::core::interface("9DD6680B-3EDC-40DB-A771-E6FE4832E34A")]
pub unsafe trait IiTunes : IDispatch {
pub unsafe fn BackTrack(&self) -> HRESULT;
pub unsafe fn FastForward(&self) -> HRESULT;
pub unsafe fn NextTrack(&self) -> HRESULT;
pub unsafe fn Pause(&self) -> HRESULT;
pub unsafe fn Play(&self) -> HRESULT;
pub unsafe fn PlayFile(&self, filePath: BSTR) -> HRESULT;
pub unsafe fn PlayPause(&self) -> HRESULT;
pub unsafe fn PreviousTrack(&self) -> HRESULT;
pub unsafe fn Resume(&self) -> HRESULT;
pub unsafe fn Rewind(&self) -> HRESULT;
pub unsafe fn Stop(&self) -> HRESULT;
pub unsafe fn ConvertFile(&self, filePath: BSTR, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn ConvertFiles(&self, filePaths: *const VARIANT, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn ConvertTrack(&self, iTrackToConvert: *const VARIANT, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn ConvertTracks(&self, iTracksToConvert: *const VARIANT, iStatus: *mut Option<IITOperationStatus>) -> HRESULT;
pub unsafe fn CheckVersion(&self, majorVersion: LONG, minorVersion: LONG, isCompatible: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn GetITObjectByID(&self, sourceID: LONG, playlistID: LONG, trackID: LONG, databaseID: LONG, iObject: *mut Option<IITObject>) -> HRESULT;
pub unsafe fn CreatePlaylist(&self, playlistName: BSTR, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn OpenURL(&self, URL: BSTR) -> HRESULT;
pub unsafe fn GotoMusicStoreHomePage(&self) -> HRESULT;
pub unsafe fn UpdateIPod(&self) -> HRESULT;
pub unsafe fn Authorize(&self, numElems: LONG, data: *const VARIANT, names: *const BSTR) -> HRESULT;
pub unsafe fn Quit(&self) -> HRESULT;
pub unsafe fn Sources(&self, iSourceCollection: *mut Option<IITSourceCollection>) -> HRESULT;
pub unsafe fn Encoders(&self, iEncoderCollection: *mut Option<IITEncoderCollection>) -> HRESULT;
pub unsafe fn EQPresets(&self, iEQPresetCollection: *mut Option<IITEQPresetCollection>) -> HRESULT;
pub unsafe fn Visuals(&self, iVisualCollection: *mut Option<IITVisualCollection>) -> HRESULT;
pub unsafe fn Windows(&self, iWindowCollection: *mut Option<IITWindowCollection>) -> HRESULT;
pub unsafe fn SoundVolume(&self, volume: *mut LONG) -> HRESULT;
pub unsafe fn set_SoundVolume(&self, volume: LONG) -> HRESULT;
pub unsafe fn Mute(&self, isMuted: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Mute(&self, isMuted: VARIANT_BOOL) -> HRESULT;
pub unsafe fn PlayerState(&self, PlayerState: *mut ITPlayerState) -> HRESULT;
pub unsafe fn PlayerPosition(&self, playerPos: *mut LONG) -> HRESULT;
pub unsafe fn set_PlayerPosition(&self, playerPos: LONG) -> HRESULT;
pub unsafe fn CurrentEncoder(&self, iEncoder: *mut Option<IITEncoder>) -> HRESULT;
pub unsafe fn set_CurrentEncoder(&self, iEncoder: *const IITEncoder) -> HRESULT;
pub unsafe fn VisualsEnabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_VisualsEnabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT;
pub unsafe fn FullScreenVisuals(&self, isFullScreen: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_FullScreenVisuals(&self, isFullScreen: VARIANT_BOOL) -> HRESULT;
pub unsafe fn VisualSize(&self, VisualSize: *mut ITVisualSize) -> HRESULT;
pub unsafe fn set_VisualSize(&self, VisualSize: ITVisualSize) -> HRESULT;
pub unsafe fn CurrentVisual(&self, iVisual: *mut Option<IITVisual>) -> HRESULT;
pub unsafe fn set_CurrentVisual(&self, iVisual: *const IITVisual) -> HRESULT;
pub unsafe fn EQEnabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_EQEnabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT;
pub unsafe fn CurrentEQPreset(&self, iEQPreset: *mut Option<IITEQPreset>) -> HRESULT;
pub unsafe fn set_CurrentEQPreset(&self, iEQPreset: *const IITEQPreset) -> HRESULT;
pub unsafe fn CurrentStreamTitle(&self, streamTitle: *mut BSTR) -> HRESULT;
pub unsafe fn set_CurrentStreamURL(&self, streamURL: *mut BSTR) -> HRESULT;
pub unsafe fn BrowserWindow(&self, iBrowserWindow: *mut Option<IITBrowserWindow>) -> HRESULT;
pub unsafe fn EQWindow(&self, iEQWindow: *mut Option<IITWindow>) -> HRESULT;
pub unsafe fn LibrarySource(&self, iLibrarySource: *mut Option<IITSource>) -> HRESULT;
pub unsafe fn LibraryPlaylist(&self, iLibraryPlaylist: *mut Option<IITLibraryPlaylist>) -> HRESULT;
pub unsafe fn CurrentTrack(&self, iTrack: *mut Option<IITTrack>) -> HRESULT;
pub unsafe fn CurrentPlaylist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn SelectedTracks(&self, iTrackCollection: *mut Option<IITTrackCollection>) -> HRESULT;
pub unsafe fn Version(&self, Version: *mut BSTR) -> HRESULT;
pub unsafe fn SetOptions(&self, options: LONG) -> HRESULT;
pub unsafe fn ConvertFile2(&self, filePath: BSTR, iStatus: *mut Option<IITConvertOperationStatus>) -> HRESULT;
pub unsafe fn ConvertFiles2(&self, filePaths: *const VARIANT, iStatus: *mut Option<IITConvertOperationStatus>) -> HRESULT;
pub unsafe fn ConvertTrack2(&self, iTrackToConvert: *const VARIANT, iStatus: *mut Option<IITConvertOperationStatus>) -> HRESULT;
pub unsafe fn ConvertTracks2(&self, iTracksToConvert: *const VARIANT, iStatus: *mut Option<IITConvertOperationStatus>) -> HRESULT;
pub unsafe fn AppCommandMessageProcessingEnabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_AppCommandMessageProcessingEnabled(&self, isEnabled: VARIANT_BOOL) -> HRESULT;
pub unsafe fn ForceToForegroundOnDialog(&self, ForceToForegroundOnDialog: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_ForceToForegroundOnDialog(&self, ForceToForegroundOnDialog: VARIANT_BOOL) -> HRESULT;
pub unsafe fn CreateEQPreset(&self, eqPresetName: BSTR, iEQPreset: *mut Option<IITEQPreset>) -> HRESULT;
pub unsafe fn CreatePlaylistInSource(&self, playlistName: BSTR, iSource: *const VARIANT, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn GetPlayerButtonsState(&self, previousEnabled: *mut VARIANT_BOOL, playPauseStopState: *mut ITPlayButtonState, nextEnabled: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn PlayerButtonClicked(&self, playerButton: ITPlayerButton, playerButtonModifierKeys: LONG) -> HRESULT;
pub unsafe fn CanSetShuffle(&self, iPlaylist: *const VARIANT, CanSetShuffle: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn CanSetSongRepeat(&self, iPlaylist: *const VARIANT, CanSetSongRepeat: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn ConvertOperationStatus(&self, iStatus: *mut Option<IITConvertOperationStatus>) -> HRESULT;
pub unsafe fn SubscribeToPodcast(&self, URL: BSTR) -> HRESULT;
pub unsafe fn UpdatePodcastFeeds(&self) -> HRESULT;
pub unsafe fn CreateFolder(&self, folderName: BSTR, iFolder: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn CreateFolderInSource(&self, folderName: BSTR, iSource: *const VARIANT, iFolder: *mut Option<IITPlaylist>) -> HRESULT;
pub unsafe fn SoundVolumeControlEnabled(&self, isEnabled: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn LibraryXMLPath(&self, filePath: *mut BSTR) -> HRESULT;
pub unsafe fn ITObjectPersistentIDHigh(&self, iObject: *const VARIANT, highID: *mut LONG) -> HRESULT;
pub unsafe fn ITObjectPersistentIDLow(&self, iObject: *const VARIANT, lowID: *mut LONG) -> HRESULT;
pub unsafe fn GetITObjectPersistentIDs(&self, iObject: *const VARIANT, highID: *mut LONG, lowID: *mut LONG) -> HRESULT;
pub unsafe fn PlayerPositionMS(&self, playerPos: *mut LONG) -> HRESULT;
pub unsafe fn set_PlayerPositionMS(&self, playerPos: LONG) -> HRESULT;
}
#[windows::core::interface("CF496DF3-0FED-4D7D-9BD8-529B6E8A082E")]
pub unsafe trait IITAudioCDPlaylist : IITPlaylist {
pub unsafe fn Artist(&self, Artist: *mut BSTR) -> HRESULT;
pub unsafe fn Compilation(&self, isCompiliation: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn Composer(&self, Composer: *mut BSTR) -> HRESULT;
pub unsafe fn DiscCount(&self, DiscCount: *mut LONG) -> HRESULT;
pub unsafe fn DiscNumber(&self, DiscNumber: *mut LONG) -> HRESULT;
pub unsafe fn Genre(&self, Genre: *mut BSTR) -> HRESULT;
pub unsafe fn Year(&self, Year: *mut LONG) -> HRESULT;
pub unsafe fn Reveal(&self) -> HRESULT;
}
#[windows::core::interface("CF4D8ACE-1720-4FB9-B0AE-9877249E89B0")]
pub unsafe trait IITIPodSource : IITSource {
pub unsafe fn UpdateIPod(&self) -> HRESULT;
pub unsafe fn EjectIPod(&self) -> HRESULT;
pub unsafe fn SoftwareVersion(&self, SoftwareVersion: *mut BSTR) -> HRESULT;
}
#[windows::core::interface("00D7FE99-7868-4CC7-AD9E-ACFD70D09566")]
pub unsafe trait IITFileOrCDTrack : IITTrack {
pub unsafe fn Location(&self, Location: *mut BSTR) -> HRESULT;
pub unsafe fn UpdateInfoFromFile(&self) -> HRESULT;
pub unsafe fn Podcast(&self, isPodcast: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn UpdatePodcastFeed(&self) -> HRESULT;
pub unsafe fn RememberBookmark(&self, RememberBookmark: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_RememberBookmark(&self, RememberBookmark: VARIANT_BOOL) -> HRESULT;
pub unsafe fn ExcludeFromShuffle(&self, ExcludeFromShuffle: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_ExcludeFromShuffle(&self, ExcludeFromShuffle: VARIANT_BOOL) -> HRESULT;
pub unsafe fn Lyrics(&self, Lyrics: *mut BSTR) -> HRESULT;
pub unsafe fn set_Lyrics(&self, Lyrics: BSTR) -> HRESULT;
pub unsafe fn Category(&self, Category: *mut BSTR) -> HRESULT;
pub unsafe fn set_Category(&self, Category: BSTR) -> HRESULT;
pub unsafe fn Description(&self, Description: *mut BSTR) -> HRESULT;
pub unsafe fn set_Description(&self, Description: BSTR) -> HRESULT;
pub unsafe fn LongDescription(&self, LongDescription: *mut BSTR) -> HRESULT;
pub unsafe fn set_LongDescription(&self, LongDescription: BSTR) -> HRESULT;
pub unsafe fn BookmarkTime(&self, BookmarkTime: *mut LONG) -> HRESULT;
pub unsafe fn set_BookmarkTime(&self, BookmarkTime: LONG) -> HRESULT;
pub unsafe fn VideoKind(&self, VideoKind: *mut ITVideoKind) -> HRESULT;
pub unsafe fn set_VideoKind(&self, VideoKind: ITVideoKind) -> HRESULT;
pub unsafe fn SkippedCount(&self, SkippedCount: *mut LONG) -> HRESULT;
pub unsafe fn set_SkippedCount(&self, SkippedCount: LONG) -> HRESULT;
pub unsafe fn SkippedDate(&self, SkippedDate: *mut DATE) -> HRESULT;
pub unsafe fn set_SkippedDate(&self, SkippedDate: DATE) -> HRESULT;
pub unsafe fn PartOfGaplessAlbum(&self, PartOfGaplessAlbum: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_PartOfGaplessAlbum(&self, PartOfGaplessAlbum: VARIANT_BOOL) -> HRESULT;
pub unsafe fn AlbumArtist(&self, AlbumArtist: *mut BSTR) -> HRESULT;
pub unsafe fn set_AlbumArtist(&self, AlbumArtist: BSTR) -> HRESULT;
pub unsafe fn Show(&self, showName: *mut BSTR) -> HRESULT;
pub unsafe fn set_Show(&self, showName: BSTR) -> HRESULT;
pub unsafe fn SeasonNumber(&self, SeasonNumber: *mut LONG) -> HRESULT;
pub unsafe fn set_SeasonNumber(&self, SeasonNumber: LONG) -> HRESULT;
pub unsafe fn EpisodeID(&self, EpisodeID: *mut BSTR) -> HRESULT;
pub unsafe fn set_EpisodeID(&self, EpisodeID: BSTR) -> HRESULT;
pub unsafe fn EpisodeNumber(&self, EpisodeNumber: *mut LONG) -> HRESULT;
pub unsafe fn set_EpisodeNumber(&self, EpisodeNumber: LONG) -> HRESULT;
pub unsafe fn Size64High(&self, sizeHigh: *mut LONG) -> HRESULT;
pub unsafe fn Size64Low(&self, sizeLow: *mut LONG) -> HRESULT;
pub unsafe fn Unplayed(&self, isUnplayed: *mut VARIANT_BOOL) -> HRESULT;
pub unsafe fn set_Unplayed(&self, isUnplayed: VARIANT_BOOL) -> HRESULT;
pub unsafe fn SortAlbum(&self, Album: *mut BSTR) -> HRESULT;
pub unsafe fn set_SortAlbum(&self, Album: BSTR) -> HRESULT;
pub unsafe fn SortAlbumArtist(&self, AlbumArtist: *mut BSTR) -> HRESULT;
pub unsafe fn set_SortAlbumArtist(&self, AlbumArtist: BSTR) -> HRESULT;
pub unsafe fn SortArtist(&self, Artist: *mut BSTR) -> HRESULT;
pub unsafe fn set_SortArtist(&self, Artist: BSTR) -> HRESULT;
pub unsafe fn SortComposer(&self, Composer: *mut BSTR) -> HRESULT;
pub unsafe fn set_SortComposer(&self, Composer: BSTR) -> HRESULT;
pub unsafe fn SortName(&self, Name: *mut BSTR) -> HRESULT;
pub unsafe fn set_SortName(&self, Name: BSTR) -> HRESULT;
pub unsafe fn SortShow(&self, showName: *mut BSTR) -> HRESULT;
pub unsafe fn set_SortShow(&self, showName: BSTR) -> HRESULT;
pub unsafe fn Reveal(&self) -> HRESULT;
pub unsafe fn AlbumRating(&self, Rating: *mut LONG) -> HRESULT;
pub unsafe fn set_AlbumRating(&self, Rating: LONG) -> HRESULT;
pub unsafe fn AlbumRatingKind(&self, ratingKind: *mut ITRatingKind) -> HRESULT;
pub unsafe fn ratingKind(&self, ratingKind: *mut ITRatingKind) -> HRESULT;
pub unsafe fn Playlists(&self, iPlaylistCollection: *mut Option<IITPlaylistCollection>) -> HRESULT;
pub unsafe fn set_Location(&self, Location: BSTR) -> HRESULT;
pub unsafe fn ReleaseDate(&self, ReleaseDate: *mut DATE) -> HRESULT;
}
#[windows::core::interface("349CBB45-2E5A-4822-8E4A-A75555A186F7")]
pub unsafe trait IITPlaylistWindow : IITWindow {
pub unsafe fn SelectedTracks(&self, iTrackCollection: *mut Option<IITTrackCollection>) -> HRESULT;
pub unsafe fn Playlist(&self, iPlaylist: *mut Option<IITPlaylist>) -> HRESULT;
}