-
Notifications
You must be signed in to change notification settings - Fork 7
/
MMDeviceAPI.pas
1296 lines (1140 loc) · 45.2 KB
/
MMDeviceAPI.pas
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
// (c) Ter-Osipov Alex V. as known as Eraser on delphimaster.ru. 2009
unit MMDeviceAPI;
// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //
// $Rev: 8291 $
// File generated on 31.08.2008 1:59:22 from Type Library described below.
// ************************************************************************ //
// Type Lib: C:\tlb\mmdeviceapi.tlb (1)
// LIBID: {2FDAAFA3-7523-4F66-9957-9D5E7FE698F6}
// LCID: 0
// Helpfile:
// HelpString: MM Device API 1.0 Type Library
// DepndLst:
// (1) v2.0 stdole, (C:\Windows\system32\stdole2.tlb)
// Errors:
// Hint: Symbol 'type' renamed to 'type_'
// Error creating palette bitmap of (TMMDeviceEnumerator) : Server C:\Windows\System32\MMDevApi.dll contains no icons
// ************************************************************************ //
// *************************************************************************//
// NOTE:
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
// which return objects that may need to be explicitly created via a function
// call prior to any access via the property. These items have been disabled
// in order to prevent accidental use from within the object inspector. You
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
// removing them from the $IFDEF blocks. However, such items must still be
// programmatically created via a method of the appropriate CoClass before
// they can be used.
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, Variants, MMSystem;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
MMDeviceAPILibMajorVersion = 1;
MMDeviceAPILibMinorVersion = 0;
LIBID_MMDeviceAPILib: TGUID = '{2FDAAFA3-7523-4F66-9957-9D5E7FE698F6}';
IID_IMMDeviceEnumerator: TGUID = '{A95664D2-9614-4F35-A746-DE8DB63617E6}';
CLASS_MMDeviceEnumerator: TGUID = '{BCDE0395-E52F-467C-8E3D-C4579291692E}';
IID_IMMDeviceCollection: TGUID = '{0BD7A1BE-7A1A-44DB-8397-CC5392387B5E}';
IID_IMMDevice: TGUID = '{D666063F-1587-4E43-81F1-B948E807363F}';
IID_ISequentialStream: TGUID = '{0C733A30-2A1C-11CE-ADE5-00AA0044773D}';
IID_IStream: TGUID = '{0000000C-0000-0000-C000-000000000046}';
IID_IStorage: TGUID = '{0000000B-0000-0000-C000-000000000046}';
IID_IEnumSTATSTG: TGUID = '{0000000D-0000-0000-C000-000000000046}';
IID_IRecordInfo: TGUID = '{0000002F-0000-0000-C000-000000000046}';
IID_ITypeInfo: TGUID = '{00020401-0000-0000-C000-000000000046}';
IID_ITypeComp: TGUID = '{00020403-0000-0000-C000-000000000046}';
IID_ITypeLib: TGUID = '{00020402-0000-0000-C000-000000000046}';
IID_IPropertyStore: TGUID = '{886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99}';
IID_IMMNotificationClient: TGUID = '{7991EEC9-7E89-4D85-8390-6C703CEC60C0}';
IID_IAudioEndpointVolume: TGUID = '{5CDF2C82-841E-4546-9722-0CF74078229A}';
IID_IAudioMeterInformation : TGUID = '{C02216F6-8C67-4B5B-9D00-D008E73E0064}';
IID_IAudioEndpointVolumeCallback: TGUID = '{657804FA-D6AD-4496-8A60-352752AF4F89}';
IID_IAudioClient: TGUID = '{1CB9AD4C-DBFA-4c32-B178-C2F568A703B2}';
IID_IAudioCaptureClient: TGUID = '{C8ADBD64-E71E-48a0-A4DE-185C395CD317}';
// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
// Constants for enum __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001
type
__MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001 = TOleEnum;
const
eRender = $00000000;
eCapture = $00000001;
eAll = $00000002;
EDataFlow_enum_count = $00000003;
// Constants for enum tagTYPEKIND
type
tagTYPEKIND = TOleEnum;
const
TKIND_ENUM = $00000000;
TKIND_RECORD = $00000001;
TKIND_MODULE = $00000002;
TKIND_INTERFACE = $00000003;
TKIND_DISPATCH = $00000004;
TKIND_COCLASS = $00000005;
TKIND_ALIAS = $00000006;
TKIND_UNION = $00000007;
TKIND_MAX = $00000008;
// Constants for enum tagDESCKIND
type
tagDESCKIND = TOleEnum;
const
DESCKIND_NONE = $00000000;
DESCKIND_FUNCDESC = $00000001;
DESCKIND_VARDESC = $00000002;
DESCKIND_TYPECOMP = $00000003;
DESCKIND_IMPLICITAPPOBJ = $00000004;
DESCKIND_MAX = $00000005;
// Constants for enum tagFUNCKIND
type
tagFUNCKIND = TOleEnum;
const
FUNC_VIRTUAL = $00000000;
FUNC_PUREVIRTUAL = $00000001;
FUNC_NONVIRTUAL = $00000002;
FUNC_STATIC = $00000003;
FUNC_DISPATCH = $00000004;
// Constants for enum tagINVOKEKIND
type
tagINVOKEKIND = TOleEnum;
const
INVOKE_FUNC = $00000001;
INVOKE_PROPERTYGET = $00000002;
INVOKE_PROPERTYPUT = $00000004;
INVOKE_PROPERTYPUTREF = $00000008;
// Constants for enum tagCALLCONV
type
tagCALLCONV = TOleEnum;
const
CC_FASTCALL = $00000000;
CC_CDECL = $00000001;
CC_MSCPASCAL = $00000002;
CC_PASCAL = $00000002;
CC_MACPASCAL = $00000003;
CC_STDCALL = $00000004;
CC_FPFASTCALL = $00000005;
CC_SYSCALL = $00000006;
CC_MPWCDECL = $00000007;
CC_MPWPASCAL = $00000008;
CC_MAX = $00000009;
// Constants for enum tagVARKIND
type
tagVARKIND = TOleEnum;
const
VAR_PERINSTANCE = $00000000;
VAR_STATIC = $00000001;
VAR_CONST = $00000002;
VAR_DISPATCH = $00000003;
// Constants for enum tagSYSKIND
type
tagSYSKIND = TOleEnum;
const
SYS_WIN16 = $00000000;
SYS_WIN32 = $00000001;
SYS_MAC = $00000002;
SYS_WIN64 = $00000003;
// Constants for enum __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002
type
__MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002 = TOleEnum;
const
eConsole = $00000000;
eMultimedia = $00000001;
eCommunications = $00000002;
ERole_enum_count = $00000003;
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IMMDeviceEnumerator = interface;
IMMDeviceCollection = interface;
IMMDevice = interface;
ISequentialStream = interface;
IStream = interface;
IStorage = interface;
IEnumSTATSTG = interface;
IRecordInfo = interface;
ITypeInfo = interface;
ITypeComp = interface;
ITypeLib = interface;
IPropertyStore = interface;
IMMNotificationClient = interface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
MMDeviceEnumerator = IMMDeviceEnumerator;
// *********************************************************************//
// Declaration of structures, unions and aliases.
// *********************************************************************//
wirePSAFEARRAY = ^PUserType4;
wireSNB = ^tagRemSNB;
PUserType5 = ^_FLAGGED_WORD_BLOB; {*}
PUserType6 = ^_wireVARIANT; {*}
PUserType13 = ^_wireBRECORD; {*}
PUserType4 = ^_wireSAFEARRAY; {*}
PPUserType1 = ^PUserType4; {*}
PUserType10 = ^tagTYPEDESC; {*}
PUserType11 = ^tagARRAYDESC; {*}
PUserType2 = ^tag_inner_PROPVARIANT; {*}
PUserType1 = ^TGUID; {*}
PByte1 = ^Byte; {*}
PUserType3 = ^_FILETIME; {*}
POleVariant1 = ^OleVariant; {*}
PUserType7 = ^tagTYPEATTR; {*}
PUserType8 = ^tagFUNCDESC; {*}
PUserType9 = ^tagVARDESC; {*}
PUserType12 = ^tagTLIBATTR; {*}
PUserType14 = ^_tagpropertykey; {*}
EDataFlow = __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001;
_LARGE_INTEGER = packed record
QuadPart: Int64;
end;
_ULARGE_INTEGER = packed record
QuadPart: Largeuint;
end;
_FILETIME = packed record
dwLowDateTime: LongWord;
dwHighDateTime: LongWord;
end;
tagCLIPDATA = packed record
cbSize: LongWord;
ulClipFmt: Integer;
pClipData: ^Byte;
end;
tagBSTRBLOB = packed record
cbSize: LongWord;
pData: ^Byte;
end;
tagBLOB = packed record
cbSize: LongWord;
pBlobData: ^Byte;
end;
tagVersionedStream = packed record
guidVersion: TGUID;
pStream: IStream;
end;
tagSTATSTG = packed record
pwcsName: PWideChar;
type_: LongWord;
cbSize: _ULARGE_INTEGER;
mtime: _FILETIME;
ctime: _FILETIME;
atime: _FILETIME;
grfMode: LongWord;
grfLocksSupported: LongWord;
clsid: TGUID;
grfStateBits: LongWord;
reserved: LongWord;
end;
tagRemSNB = packed record
ulCntStr: LongWord;
ulCntChar: LongWord;
rgString: ^Word;
end;
tagCAC = packed record
cElems: LongWord;
pElems: ^Shortint;
end;
tagCAUB = packed record
cElems: LongWord;
pElems: ^Byte;
end;
_wireSAFEARR_BSTR = packed record
Size: LongWord;
aBstr: ^PUserType5;
end;
_wireSAFEARR_UNKNOWN = packed record
Size: LongWord;
apUnknown: ^IUnknown;
end;
_wireSAFEARR_DISPATCH = packed record
Size: LongWord;
apDispatch: ^IDispatch;
end;
_FLAGGED_WORD_BLOB = packed record
fFlags: LongWord;
clSize: LongWord;
asData: ^Word;
end;
_wireSAFEARR_VARIANT = packed record
Size: LongWord;
aVariant: ^PUserType6;
end;
_wireBRECORD = packed record
fFlags: LongWord;
clSize: LongWord;
pRecInfo: IRecordInfo;
pRecord: ^Byte;
end;
__MIDL_IOleAutomationTypes_0005 = record
case Integer of
0: (lptdesc: PUserType10);
1: (lpadesc: PUserType11);
2: (hreftype: LongWord);
end;
tagTYPEDESC = packed record
__MIDL__IOleAutomationTypes0004: __MIDL_IOleAutomationTypes_0005;
vt: Word;
end;
tagSAFEARRAYBOUND = packed record
cElements: LongWord;
lLbound: Integer;
end;
ULONG_PTR = LongWord;
tagIDLDESC = packed record
dwReserved: ULONG_PTR;
wIDLFlags: Word;
end;
DWORD = LongWord;
tagPARAMDESCEX = packed record
cBytes: LongWord;
varDefaultValue: OleVariant;
end;
tagPARAMDESC = packed record
pparamdescex: ^tagPARAMDESCEX;
wParamFlags: Word;
end;
tagELEMDESC = packed record
tdesc: tagTYPEDESC;
paramdesc: tagPARAMDESC;
end;
tagFUNCDESC = packed record
memid: Integer;
lprgscode: ^SCODE;
lprgelemdescParam: ^tagELEMDESC;
funckind: tagFUNCKIND;
invkind: tagINVOKEKIND;
callconv: tagCALLCONV;
cParams: Smallint;
cParamsOpt: Smallint;
oVft: Smallint;
cScodes: Smallint;
elemdescFunc: tagELEMDESC;
wFuncFlags: Word;
end;
__MIDL_IOleAutomationTypes_0006 = record
case Integer of
0: (oInst: LongWord);
1: (lpvarValue: ^OleVariant);
end;
tagVARDESC = packed record
memid: Integer;
lpstrSchema: PWideChar;
__MIDL__IOleAutomationTypes0005: __MIDL_IOleAutomationTypes_0006;
elemdescVar: tagELEMDESC;
wVarFlags: Word;
varkind: tagVARKIND;
end;
tagTLIBATTR = packed record
guid: TGUID;
lcid: LongWord;
syskind: tagSYSKIND;
wMajorVerNum: Word;
wMinorVerNum: Word;
wLibFlags: Word;
end;
_wireSAFEARR_BRECORD = packed record
Size: LongWord;
aRecord: ^PUserType13;
end;
_wireSAFEARR_HAVEIID = packed record
Size: LongWord;
apUnknown: ^IUnknown;
iid: TGUID;
end;
_BYTE_SIZEDARR = packed record
clSize: LongWord;
pData: ^Byte;
end;
_SHORT_SIZEDARR = packed record
clSize: LongWord;
pData: ^Word;
end;
_LONG_SIZEDARR = packed record
clSize: LongWord;
pData: ^LongWord;
end;
_HYPER_SIZEDARR = packed record
clSize: LongWord;
pData: ^Int64;
end;
tagCAI = packed record
cElems: LongWord;
pElems: ^Smallint;
end;
tagCAUI = packed record
cElems: LongWord;
pElems: ^Word;
end;
tagCAL = packed record
cElems: LongWord;
pElems: ^Integer;
end;
tagCAUL = packed record
cElems: LongWord;
pElems: ^LongWord;
end;
tagCAH = packed record
cElems: LongWord;
pElems: ^_LARGE_INTEGER;
end;
tagCAUH = packed record
cElems: LongWord;
pElems: ^_ULARGE_INTEGER;
end;
tagCAFLT = packed record
cElems: LongWord;
pElems: ^Single;
end;
tagCADBL = packed record
cElems: LongWord;
pElems: ^Double;
end;
tagCABOOL = packed record
cElems: LongWord;
pElems: ^WordBool;
end;
tagCASCODE = packed record
cElems: LongWord;
pElems: ^SCODE;
end;
tagCACY = packed record
cElems: LongWord;
pElems: ^Currency;
end;
tagCADATE = packed record
cElems: LongWord;
pElems: ^TDateTime;
end;
tagCAFILETIME = packed record
cElems: LongWord;
pElems: ^_FILETIME;
end;
tagCACLSID = packed record
cElems: LongWord;
pElems: ^TGUID;
end;
tagCACLIPDATA = packed record
cElems: LongWord;
pElems: ^tagCLIPDATA;
end;
tagCABSTR = packed record
cElems: LongWord;
pElems: ^WideString;
end;
tagCABSTRBLOB = packed record
cElems: LongWord;
pElems: ^tagBSTRBLOB;
end;
tagCALPSTR = packed record
cElems: LongWord;
pElems: ^PChar;
end;
tagCALPWSTR = packed record
cElems: LongWord;
pElems: ^PWideChar;
end;
tagCAPROPVARIANT = packed record
cElems: LongWord;
pElems: PUserType2;
end;
__MIDL___MIDL_itf_mmdeviceapi_0003_0081_0001 = record
case Integer of
0: (cVal: Shortint);
1: (bVal: Byte);
2: (iVal: Smallint);
3: (uiVal: Word);
4: (lVal: Integer);
5: (ulVal: LongWord);
6: (intVal: SYSINT);
7: (uintVal: SYSUINT);
8: (hVal: _LARGE_INTEGER);
9: (uhVal: _ULARGE_INTEGER);
10: (fltVal: Single);
11: (dblVal: Double);
12: (boolVal: WordBool);
13: (bool: WordBool);
14: (scode: SCODE);
15: (cyVal: Currency);
16: (date: TDateTime);
17: (filetime: _FILETIME);
18: (puuid: ^TGUID);
19: (pClipData: ^tagCLIPDATA);
20: (bstrVal: {!!WideString}Pointer);
21: (bstrblobVal: tagBSTRBLOB);
22: (blob: tagBLOB);
23: (pszVal: PChar);
24: (pwszVal: PWideChar);
25: (punkVal: {!!IUnknown}Pointer);
26: (pdispVal: {!!IDispatch}Pointer);
27: (pStream: {!!IStream}Pointer);
28: (pStorage: {!!IStorage}Pointer);
29: (pVersionedStream: ^tagVersionedStream);
30: (parray: wirePSAFEARRAY);
31: (cac: tagCAC);
32: (caub: tagCAUB);
33: (cai: tagCAI);
34: (caui: tagCAUI);
35: (cal: tagCAL);
36: (caul: tagCAUL);
37: (cah: tagCAH);
38: (cauh: tagCAUH);
39: (caflt: tagCAFLT);
40: (cadbl: tagCADBL);
41: (cabool: tagCABOOL);
42: (cascode: tagCASCODE);
43: (cacy: tagCACY);
44: (cadate: tagCADATE);
45: (cafiletime: tagCAFILETIME);
46: (cauuid: tagCACLSID);
47: (caclipdata: tagCACLIPDATA);
48: (cabstr: tagCABSTR);
49: (cabstrblob: tagCABSTRBLOB);
50: (calpstr: tagCALPSTR);
51: (calpwstr: tagCALPWSTR);
52: (capropvar: tagCAPROPVARIANT);
53: (pcVal: ^Shortint);
54: (pbVal: ^Byte);
55: (piVal: ^Smallint);
56: (puiVal: ^Word);
57: (plVal: ^Integer);
58: (pulVal: ^LongWord);
59: (pintVal: ^SYSINT);
60: (puintVal: ^SYSUINT);
61: (pfltVal: ^Single);
62: (pdblVal: ^Double);
63: (pboolVal: ^WordBool);
64: (pdecVal: ^TDecimal);
65: (pscode: ^SCODE);
66: (pcyVal: ^Currency);
67: (pdate: ^TDateTime);
68: (pbstrVal: ^WideString);
69: (ppunkVal: {!!^IUnknown}Pointer);
70: (ppdispVal: {!!^IDispatch}Pointer);
71: (pparray: ^wirePSAFEARRAY);
72: (pvarVal: PUserType2);
end;
_tagpropertykey = packed record
fmtid: TGUID;
pid: LongWord;
end;
ERole = __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002;
tag_inner_PROPVARIANT = packed record
vt: Word;
wReserved1: Byte;
wReserved2: Byte;
wReserved3: LongWord;
__MIDL____MIDL_itf_mmdeviceapi_0003_00810001: __MIDL___MIDL_itf_mmdeviceapi_0003_0081_0001;
end;
__MIDL_IOleAutomationTypes_0004 = record
case Integer of
0: (llVal: Int64);
1: (lVal: Integer);
2: (bVal: Byte);
3: (iVal: Smallint);
4: (fltVal: Single);
5: (dblVal: Double);
6: (boolVal: WordBool);
7: (scode: SCODE);
8: (cyVal: Currency);
9: (date: TDateTime);
10: (bstrVal: ^_FLAGGED_WORD_BLOB);
11: (punkVal: {!!IUnknown}Pointer);
12: (pdispVal: {!!IDispatch}Pointer);
13: (parray: ^PUserType4);
14: (brecVal: ^_wireBRECORD);
15: (pbVal: ^Byte);
16: (piVal: ^Smallint);
17: (plVal: ^Integer);
18: (pllVal: ^Int64);
19: (pfltVal: ^Single);
20: (pdblVal: ^Double);
21: (pboolVal: ^WordBool);
22: (pscode: ^SCODE);
23: (pcyVal: ^Currency);
24: (pdate: ^TDateTime);
25: (pbstrVal: ^PUserType5);
26: (ppunkVal: {!!^IUnknown}Pointer);
27: (ppdispVal: {!!^IDispatch}Pointer);
28: (pparray: ^PPUserType1);
29: (pvarVal: ^PUserType6);
30: (cVal: Shortint);
31: (uiVal: Word);
32: (ulVal: LongWord);
33: (ullVal: Largeuint);
34: (intVal: SYSINT);
35: (uintVal: SYSUINT);
36: (decVal: TDecimal);
37: (pdecVal: ^TDecimal);
38: (pcVal: ^Shortint);
39: (puiVal: ^Word);
40: (pulVal: ^LongWord);
41: (pullVal: ^Largeuint);
42: (pintVal: ^SYSINT);
43: (puintVal: ^SYSUINT);
end;
__MIDL_IOleAutomationTypes_0001 = record
case Integer of
0: (BstrStr: _wireSAFEARR_BSTR);
1: (UnknownStr: _wireSAFEARR_UNKNOWN);
2: (DispatchStr: _wireSAFEARR_DISPATCH);
3: (VariantStr: _wireSAFEARR_VARIANT);
4: (RecordStr: _wireSAFEARR_BRECORD);
5: (HaveIidStr: _wireSAFEARR_HAVEIID);
6: (ByteStr: _BYTE_SIZEDARR);
7: (WordStr: _SHORT_SIZEDARR);
8: (LongStr: _LONG_SIZEDARR);
9: (HyperStr: _HYPER_SIZEDARR);
end;
_wireSAFEARRAY_UNION = packed record
sfType: LongWord;
u: __MIDL_IOleAutomationTypes_0001;
end;
_wireVARIANT = packed record
clSize: LongWord;
rpcReserved: LongWord;
vt: Word;
wReserved1: Word;
wReserved2: Word;
wReserved3: Word;
__MIDL__IOleAutomationTypes0002: __MIDL_IOleAutomationTypes_0004;
end;
tagTYPEATTR = packed record
guid: TGUID;
lcid: LongWord;
dwReserved: LongWord;
memidConstructor: Integer;
memidDestructor: Integer;
lpstrSchema: PWideChar;
cbSizeInstance: LongWord;
typekind: tagTYPEKIND;
cFuncs: Word;
cVars: Word;
cImplTypes: Word;
cbSizeVft: Word;
cbAlignment: Word;
wTypeFlags: Word;
wMajorVerNum: Word;
wMinorVerNum: Word;
tdescAlias: tagTYPEDESC;
idldescType: tagIDLDESC;
end;
tagARRAYDESC = packed record
tdescElem: tagTYPEDESC;
cDims: Word;
rgbounds: ^tagSAFEARRAYBOUND;
end;
_wireSAFEARRAY = packed record
cDims: Word;
fFeatures: Word;
cbElements: LongWord;
cLocks: LongWord;
uArrayStructs: _wireSAFEARRAY_UNION;
rgsabound: ^tagSAFEARRAYBOUND;
end;
// *********************************************************************//
// Interface: IMMDeviceEnumerator
// Flags: (128) NonExtensible
// GUID: {A95664D2-9614-4F35-A746-DE8DB63617E6}
// *********************************************************************//
IMMDeviceEnumerator = interface(IUnknown)
['{A95664D2-9614-4F35-A746-DE8DB63617E6}']
function EnumAudioEndpoints(dataFlow: EDataFlow; dwStateMask: LongWord;
out ppDevices: IMMDeviceCollection): HResult; stdcall;
function GetDefaultAudioEndpoint(dataFlow: EDataFlow; role: ERole; out ppEndpoint: IMMDevice): HResult; stdcall;
function GetDevice(pwstrId: PWideChar; out ppDevice: IMMDevice): HResult; stdcall;
function RegisterEndpointNotificationCallback(const pClient: IMMNotificationClient): HResult; stdcall;
function UnregisterEndpointNotificationCallback(const pClient: IMMNotificationClient): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IMMDeviceCollection
// Flags: (128) NonExtensible
// GUID: {0BD7A1BE-7A1A-44DB-8397-CC5392387B5E}
// *********************************************************************//
IMMDeviceCollection = interface(IUnknown)
['{0BD7A1BE-7A1A-44DB-8397-CC5392387B5E}']
function GetCount(out pcDevices: SYSUINT): HResult; stdcall;
function Item(nDevice: SYSUINT; out ppDevice: IMMDevice): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IMMDevice
// Flags: (128) NonExtensible
// GUID: {D666063F-1587-4E43-81F1-B948E807363F}
// *********************************************************************//
IMMDevice = interface(IUnknown)
['{D666063F-1587-4E43-81F1-B948E807363F}']
function Activate(var iid: TGUID; dwClsCtx: LongWord;
var pActivationParams: tag_inner_PROPVARIANT; out ppInterface: Pointer): HResult; stdcall;
function OpenPropertyStore(stgmAccess: LongWord; out ppProperties: IPropertyStore): HResult; stdcall;
function GetId(out ppstrId: PWideChar): HResult; stdcall;
function GetState(out pdwState: LongWord): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ISequentialStream
// Flags: (0)
// GUID: {0C733A30-2A1C-11CE-ADE5-00AA0044773D}
// *********************************************************************//
ISequentialStream = interface(IUnknown)
['{0C733A30-2A1C-11CE-ADE5-00AA0044773D}']
function RemoteRead(out pv: Byte; cb: LongWord; out pcbRead: LongWord): HResult; stdcall;
function RemoteWrite(var pv: Byte; cb: LongWord; out pcbWritten: LongWord): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IStream
// Flags: (0)
// GUID: {0000000C-0000-0000-C000-000000000046}
// *********************************************************************//
IStream = interface(ISequentialStream)
['{0000000C-0000-0000-C000-000000000046}']
function RemoteSeek(dlibMove: _LARGE_INTEGER; dwOrigin: LongWord;
out plibNewPosition: _ULARGE_INTEGER): HResult; stdcall;
function SetSize(libNewSize: _ULARGE_INTEGER): HResult; stdcall;
function RemoteCopyTo(const pstm: IStream; cb: _ULARGE_INTEGER; out pcbRead: _ULARGE_INTEGER;
out pcbWritten: _ULARGE_INTEGER): HResult; stdcall;
function Commit(grfCommitFlags: LongWord): HResult; stdcall;
function Revert: HResult; stdcall;
function LockRegion(libOffset: _ULARGE_INTEGER; cb: _ULARGE_INTEGER; dwLockType: LongWord): HResult; stdcall;
function UnlockRegion(libOffset: _ULARGE_INTEGER; cb: _ULARGE_INTEGER; dwLockType: LongWord): HResult; stdcall;
function Stat(out pstatstg: tagSTATSTG; grfStatFlag: LongWord): HResult; stdcall;
function Clone(out ppstm: IStream): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IStorage
// Flags: (0)
// GUID: {0000000B-0000-0000-C000-000000000046}
// *********************************************************************//
IStorage = interface(IUnknown)
['{0000000B-0000-0000-C000-000000000046}']
function CreateStream(pwcsName: PWideChar; grfMode: LongWord; reserved1: LongWord;
reserved2: LongWord; out ppstm: IStream): HResult; stdcall;
function RemoteOpenStream(pwcsName: PWideChar; cbReserved1: LongWord; var reserved1: Byte;
grfMode: LongWord; reserved2: LongWord; out ppstm: IStream): HResult; stdcall;
function CreateStorage(pwcsName: PWideChar; grfMode: LongWord; reserved1: LongWord;
reserved2: LongWord; out ppstg: IStorage): HResult; stdcall;
function OpenStorage(pwcsName: PWideChar; const pstgPriority: IStorage; grfMode: LongWord;
var snbExclude: tagRemSNB; reserved: LongWord; out ppstg: IStorage): HResult; stdcall;
function RemoteCopyTo(ciidExclude: LongWord; var rgiidExclude: TGUID;
var snbExclude: tagRemSNB; const pstgDest: IStorage): HResult; stdcall;
function MoveElementTo(pwcsName: PWideChar; const pstgDest: IStorage; pwcsNewName: PWideChar;
grfFlags: LongWord): HResult; stdcall;
function Commit(grfCommitFlags: LongWord): HResult; stdcall;
function Revert: HResult; stdcall;
function RemoteEnumElements(reserved1: LongWord; cbReserved2: LongWord; var reserved2: Byte;
reserved3: LongWord; out ppenum: IEnumSTATSTG): HResult; stdcall;
function DestroyElement(pwcsName: PWideChar): HResult; stdcall;
function RenameElement(pwcsOldName: PWideChar; pwcsNewName: PWideChar): HResult; stdcall;
function SetElementTimes(pwcsName: PWideChar; var pctime: _FILETIME; var patime: _FILETIME;
var pmtime: _FILETIME): HResult; stdcall;
function SetClass(var clsid: TGUID): HResult; stdcall;
function SetStateBits(grfStateBits: LongWord; grfMask: LongWord): HResult; stdcall;
function Stat(out pstatstg: tagSTATSTG; grfStatFlag: LongWord): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IEnumSTATSTG
// Flags: (0)
// GUID: {0000000D-0000-0000-C000-000000000046}
// *********************************************************************//
IEnumSTATSTG = interface(IUnknown)
['{0000000D-0000-0000-C000-000000000046}']
function RemoteNext(celt: LongWord; out rgelt: tagSTATSTG; out pceltFetched: LongWord): HResult; stdcall;
function Skip(celt: LongWord): HResult; stdcall;
function Reset: HResult; stdcall;
function Clone(out ppenum: IEnumSTATSTG): HResult; stdcall;
end;
// *********************************************************************//
// Interface: IRecordInfo
// Flags: (0)
// GUID: {0000002F-0000-0000-C000-000000000046}
// *********************************************************************//
IRecordInfo = interface(IUnknown)
['{0000002F-0000-0000-C000-000000000046}']
function RecordInit(out pvNew: Pointer): HResult; stdcall;
function RecordClear(var pvExisting: Pointer): HResult; stdcall;
function RecordCopy(var pvExisting: Pointer; out pvNew: Pointer): HResult; stdcall;
function GetGuid(out pguid: TGUID): HResult; stdcall;
function GetName(out pbstrName: WideString): HResult; stdcall;
function GetSize(out pcbSize: LongWord): HResult; stdcall;
function GetTypeInfo(out ppTypeInfo: ITypeInfo): HResult; stdcall;
function GetField(var pvData: Pointer; szFieldName: PWideChar; out pvarField: OleVariant): HResult; stdcall;
function GetFieldNoCopy(var pvData: Pointer; szFieldName: PWideChar; out pvarField: OleVariant;
out ppvDataCArray: Pointer): HResult; stdcall;
function PutField(wFlags: LongWord; var pvData: Pointer; szFieldName: PWideChar;
var pvarField: OleVariant): HResult; stdcall;
function PutFieldNoCopy(wFlags: LongWord; var pvData: Pointer; szFieldName: PWideChar;
var pvarField: OleVariant): HResult; stdcall;
function GetFieldNames(var pcNames: LongWord; out rgBstrNames: WideString): HResult; stdcall;
function IsMatchingType(const pRecordInfo: IRecordInfo): Integer; stdcall;
function RecordCreate: Pointer; stdcall;
function RecordCreateCopy(var pvSource: Pointer; out ppvDest: Pointer): HResult; stdcall;
function RecordDestroy(var pvRecord: Pointer): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ITypeInfo
// Flags: (0)
// GUID: {00020401-0000-0000-C000-000000000046}
// *********************************************************************//
ITypeInfo = interface(IUnknown)
['{00020401-0000-0000-C000-000000000046}']
function RemoteGetTypeAttr(out ppTypeAttr: PUserType7; out pDummy: DWORD): HResult; stdcall;
function GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
function RemoteGetFuncDesc(index: SYSUINT; out ppFuncDesc: PUserType8; out pDummy: DWORD): HResult; stdcall;
function RemoteGetVarDesc(index: SYSUINT; out ppVarDesc: PUserType9; out pDummy: DWORD): HResult; stdcall;
function RemoteGetNames(memid: Integer; out rgBstrNames: WideString; cMaxNames: SYSUINT;
out pcNames: SYSUINT): HResult; stdcall;
function GetRefTypeOfImplType(index: SYSUINT; out pRefType: LongWord): HResult; stdcall;
function GetImplTypeFlags(index: SYSUINT; out pImplTypeFlags: SYSINT): HResult; stdcall;
function LocalGetIDsOfNames: HResult; stdcall;
function LocalInvoke: HResult; stdcall;
function RemoteGetDocumentation(memid: Integer; refPtrFlags: LongWord;
out pbstrName: WideString; out pBstrDocString: WideString;
out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
function RemoteGetDllEntry(memid: Integer; invkind: tagINVOKEKIND; refPtrFlags: LongWord;
out pBstrDllName: WideString; out pbstrName: WideString;
out pwOrdinal: Word): HResult; stdcall;
function GetRefTypeInfo(hreftype: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
function LocalAddressOfMember: HResult; stdcall;
function RemoteCreateInstance(var riid: TGUID; out ppvObj: IUnknown): HResult; stdcall;
function GetMops(memid: Integer; out pBstrMops: WideString): HResult; stdcall;
function RemoteGetContainingTypeLib(out ppTLib: ITypeLib; out pIndex: SYSUINT): HResult; stdcall;
function LocalReleaseTypeAttr: HResult; stdcall;
function LocalReleaseFuncDesc: HResult; stdcall;
function LocalReleaseVarDesc: HResult; stdcall;
end;
// *********************************************************************//
// Interface: ITypeComp
// Flags: (0)
// GUID: {00020403-0000-0000-C000-000000000046}
// *********************************************************************//
ITypeComp = interface(IUnknown)
['{00020403-0000-0000-C000-000000000046}']
function RemoteBind(szName: PWideChar; lHashVal: LongWord; wFlags: Word;
out ppTInfo: ITypeInfo; out pDescKind: tagDESCKIND;
out ppFuncDesc: PUserType8; out ppVarDesc: PUserType9;
out ppTypeComp: ITypeComp; out pDummy: DWORD): HResult; stdcall;
function RemoteBindType(szName: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo): HResult; stdcall;
end;
// *********************************************************************//
// Interface: ITypeLib
// Flags: (0)
// GUID: {00020402-0000-0000-C000-000000000046}
// *********************************************************************//
ITypeLib = interface(IUnknown)
['{00020402-0000-0000-C000-000000000046}']
function RemoteGetTypeInfoCount(out pcTInfo: SYSUINT): HResult; stdcall;
function GetTypeInfo(index: SYSUINT; out ppTInfo: ITypeInfo): HResult; stdcall;
function GetTypeInfoType(index: SYSUINT; out pTKind: tagTYPEKIND): HResult; stdcall;
function GetTypeInfoOfGuid(var guid: TGUID; out ppTInfo: ITypeInfo): HResult; stdcall;
function RemoteGetLibAttr(out ppTLibAttr: PUserType12; out pDummy: DWORD): HResult; stdcall;
function GetTypeComp(out ppTComp: ITypeComp): HResult; stdcall;
function RemoteGetDocumentation(index: SYSINT; refPtrFlags: LongWord;
out pbstrName: WideString; out pBstrDocString: WideString;
out pdwHelpContext: LongWord; out pBstrHelpFile: WideString): HResult; stdcall;
function RemoteIsName(szNameBuf: PWideChar; lHashVal: LongWord; out pfName: Integer;
out pBstrLibName: WideString): HResult; stdcall;
function RemoteFindName(szNameBuf: PWideChar; lHashVal: LongWord; out ppTInfo: ITypeInfo;
out rgMemId: Integer; var pcFound: Word; out pBstrLibName: WideString): HResult; stdcall;
function LocalReleaseTLibAttr: HResult; stdcall;
end;
// *********************************************************************//
// Interface: IPropertyStore
// Flags: (0)
// GUID: {886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99}
// *********************************************************************//
IPropertyStore = interface(IUnknown)
['{886D8EEB-8CF2-4446-8D02-CDBA1DBDCF99}']
function GetCount(out cProps: LongWord): HResult; stdcall;
function GetAt(iProp: LongWord; out pkey: _tagpropertykey): HResult; stdcall;
function GetValue(var key: _tagpropertykey; out pv: tag_inner_PROPVARIANT): HResult; stdcall;
function SetValue(var key: _tagpropertykey; var propvar: tag_inner_PROPVARIANT): HResult; stdcall;
function Commit: HResult; stdcall;
end;
// *********************************************************************//
// Interface: IMMNotificationClient
// Flags: (128) NonExtensible
// GUID: {7991EEC9-7E89-4D85-8390-6C703CEC60C0}
// *********************************************************************//
IMMNotificationClient = interface(IUnknown)
['{7991EEC9-7E89-4D85-8390-6C703CEC60C0}']
function OnDeviceStateChanged(pwstrDeviceId: PWideChar; dwNewState: LongWord): HResult; stdcall;
function OnDeviceAdded(pwstrDeviceId: PWideChar): HResult; stdcall;
function OnDeviceRemoved(pwstrDeviceId: PWideChar): HResult; stdcall;
function OnDefaultDeviceChanged(flow: EDataFlow; role: ERole; pwstrDefaultDeviceId: PWideChar): HResult; stdcall;
function OnPropertyValueChanged(pwstrDeviceId: PWideChar; key: _tagpropertykey): HResult; stdcall;
end;