-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMSACM.PAS
More file actions
1204 lines (828 loc) · 44.5 KB
/
MSACM.PAS
File metadata and controls
1204 lines (828 loc) · 44.5 KB
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
{************************************************************}
{ }
{ Delphi Runtime Library }
{ Windows 32bit API Interface Unit }
{ Microsoft Audio Compression Manager Interface unit }
{ programmed by M.yanagisawa. }
{ }
{************************************************************}
unit msacm;
interface
uses Windows,MMsystem,MMreg;
{
Audio Compression Manager Common Dialogs Identifiers
}
const
DLG_ACMFORMATCHOOSE_ID = 70;
IDD_ACMFORMATCHOOSE_BTN_HELP = 9;
IDD_ACMFORMATCHOOSE_CMB_CUSTOM = 100;
IDD_ACMFORMATCHOOSE_CMB_FORMATTAG = 101;
IDD_ACMFORMATCHOOSE_CMB_FORMAT = 102;
IDD_ACMFORMATCHOOSE_BTN_SETNAME = 103;
IDD_ACMFORMATCHOOSE_BTN_DELNAME = 104;
DLG_ACMFILTERCHOOSE_ID = 71;
IDD_ACMFILTERCHOOSE_BTN_HELP = 9;
IDD_ACMFILTERCHOOSE_CMB_CUSTOM = 100;
IDD_ACMFILTERCHOOSE_CMB_FILTERTAG = 101;
IDD_ACMFILTERCHOOSE_CMB_FILTER = 102;
IDD_ACMFILTERCHOOSE_BTN_SETNAME = 103;
IDD_ACMFILTERCHOOSE_BTN_DELNAME = 104;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -}
const
DRV_MAPPER_PREFERRED_INPUT_GET = (DRV_USER + 0);
DRV_MAPPER_PREFERRED_OUTPUT_GET = (DRV_USER + 2);
DRVM_MAPPER_STATUS = $2000;
WIDM_MAPPER_STATUS = (DRVM_MAPPER_STATUS + 0);
WAVEIN_MAPPER_STATUS_DEVICE = 0;
WAVEIN_MAPPER_STATUS_MAPPED = 1;
WAVEIN_MAPPER_STATUS_FORMAT = 2;
WODM_MAPPER_STATUS = (DRVM_MAPPER_STATUS + 0);
WAVEOUT_MAPPER_STATUS_DEVICE = 0;
WAVEOUT_MAPPER_STATUS_MAPPED = 1;
WAVEOUT_MAPPER_STATUS_FORMAT = 2;
{--------------------------------------------------------------------------
ACM General API's and Defines
--------------------------------------------------------------------------
there are four types of 'handles' used by the ACM. the first three
are unique types that define specific objects:
HACMDRIVERID: used to _identify_ an ACM driver. this identifier can be
used to _open_ the driver for querying details, etc about the driver.
HACMDRIVER: used to manage a driver (codec, filter, etc). this handle
is much like a handle to other media drivers--you use it to send
messages to the converter, query for capabilities, etc.
HACMSTREAM: used to manage a 'stream' (conversion channel) with the
ACM. you use a stream handle to convert data from one format/type
to another--much like dealing with a file handle.
the fourth handle type is a generic type used on ACM functions that
can accept two or more of the above handle types (for example the
acmMetrics and acmDriverID functions).
HACMOBJ: used to identify ACM objects. this handle is used on functions
that can accept two or more ACM handle types.
}
type
PHACMDRIVERID = ^HACMDRIVERID;
HACMDRIVERID = Integer;
PHACMDRIVER = ^HACMDRIVER;
HACMDRIVER = Integer;
PHACMSTREAM = ^HACMSTREAM;
HACMSTREAM = Integer;
PHACMOBJ = ^HACMOBJ;
HACMOBJ = Integer;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ACM Error Codes
Note that these error codes are specific errors that apply to the ACM
directly--general errors are defined as MMSYSERR_*.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
type
MMRESULT = UINT;
const
ACMERR_BASE = 512;
ACMERR_NOTPOSSIBLE = (ACMERR_BASE + 0);
ACMERR_BUSY = (ACMERR_BASE + 1);
ACMERR_UNPREPARED = (ACMERR_BASE + 2);
ACMERR_CANCELED = (ACMERR_BASE + 3);
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ACM Window Messages
These window messages are sent by the ACM or ACM drivers to notify
applications of events.
Note that these window message numbers will also be defined in
mmsystem.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
const
MM_ACM_OPEN = MM_STREAM_OPEN; { conversion callback messages }
MM_ACM_CLOSE = MM_STREAM_CLOSE;
MM_ACM_DONE = MM_STREAM_DONE;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmGetVersion()
the ACM version is a 32 bit number that is broken into three parts as
follows:
bits 24 - 31: 8 bit _major_ version number
bits 16 - 23: 8 bit _minor_ version number
bits 0 - 15: 16 bit build number
this is then displayed as follows:
bMajor = (BYTE)(dwVersion >> 24)
bMinor = (BYTE)(dwVersion >> 16) &
wBuild = LOWORD(dwVersion)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmGetVersion:DWORD; stdcall;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmMetrics()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmMetrics(hao: HACMOBJ; uMetric: UINT; pMetric: Pointer):MMRESULT; stdcall;
const
ACM_METRIC_COUNT_DRIVERS = 1;
ACM_METRIC_COUNT_CODECS = 2;
ACM_METRIC_COUNT_CONVERTERS = 3;
ACM_METRIC_COUNT_FILTERS = 4;
ACM_METRIC_COUNT_DISABLED = 5;
ACM_METRIC_COUNT_HARDWARE = 6;
ACM_METRIC_COUNT_LOCAL_DRIVERS = 20;
ACM_METRIC_COUNT_LOCAL_CODECS = 21;
ACM_METRIC_COUNT_LOCAL_CONVERTERS = 22;
ACM_METRIC_COUNT_LOCAL_FILTERS = 23;
ACM_METRIC_COUNT_LOCAL_DISABLED = 24;
ACM_METRIC_HARDWARE_WAVE_INPUT = 30;
ACM_METRIC_HARDWARE_WAVE_OUTPUT = 31;
ACM_METRIC_MAX_SIZE_FORMAT = 50;
ACM_METRIC_MAX_SIZE_FILTER = 51;
ACM_METRIC_DRIVER_SUPPORT = 100;
ACM_METRIC_DRIVER_PRIORITY = 101;
{ --------------------------------------------------------------------------
ACM Drivers
--------------------------------------------------------------------------}
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverEnum()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
type
TFNACMDriverEnumCb = function(hadid: HACMDRIVERID; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
function acmDriverEnum(fnCallBack: TFNACMDriverEnumCb; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
const
ACM_DRIVERENUMF_NOLOCAL = $40000000;
ACM_DRIVERENUMF_DISABLED = $80000000;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
acmDriverID()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverID(hao: HACMOBJ; phadid: PHACMDriverID; fdwDriverID: DWORD):MMRESULT; stdcall;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverAdd()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverAddA(phadid: PHACMDriverID; hinstModule: HINST; lParam: LPARAM; dwPriority: DWORD; fdwAdd: DWORD):MMRESULT; stdcall;
function acmDriverAddW(phadid: PHACMDriverID; hinstModule: HINST; lParam: LPARAM; dwPriority: DWORD; fdwAdd: DWORD):MMRESULT; stdcall;
function acmDriverAdd(phadid: PHACMDriverID; hinstModule: HINST; lParam: LPARAM; dwPriority: DWORD; fdwAdd: DWORD):MMRESULT; stdcall;
const
ACM_DRIVERADDF_FUNCTION = $00000003; { lParam is a procedure }
ACM_DRIVERADDF_NOTIFYHWND = $00000004; { lParam is notify hwnd }
ACM_DRIVERADDF_TYPEMASK = $00000007; { driver type mask }
ACM_DRIVERADDF_LOCAL = $00000000; { is local to current task }
ACM_DRIVERADDF_GLOBAL = $00000008; { is global }
{
prototype for ACM driver procedures that are installed as _functions_
or _notifations_ instead of as a standalone installable driver.
}
type
PFNACMDriverProc = ^TFNACMDriverProc;
TFNACMDriverProc = function(dwID: DWORD; hadid: HACMDriverID; uMsg: UINT; lParam1: LPARAM; lParam2: LPARAM):LRESULT; stdcall;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverRemove()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverRemove(hadid: HACMDriverID; fdwRemove: DWORD):MMRESULT; stdcall;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverOpen()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverOpen(phad: PHACMDriver; hadid: HACMDriverID; fdwOpen: DWORD):MMRESULT; stdcall;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverClose()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverClose(had: HACMDriver; fdwClose: DWORD):MMRESULT; stdcall;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverMessage()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverMessage(had: HACMDriver; uMsg: UINT; lParam1: LPARAM; lParam2: LPARAM):LRESULT; stdcall;
const
ACMDM_USER = (DRV_USER + $0000);
ACMDM_RESERVED_LOW = (DRV_USER + $2000);
ACMDM_RESERVED_HIGH = (DRV_USER + $2FFF);
ACMDM_BASE = ACMDM_RESERVED_LOW;
ACMDM_DRIVER_ABOUT = (ACMDM_BASE + 11);
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverPriority
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmDriverPriority(hadid: HACMDriverID; dwPriority: DWORD; fdwPriority: DWORD):MMRESULT; stdcall;
const
ACM_DRIVERPRIORITYF_ENABLE = $00000001;
ACM_DRIVERPRIORITYF_DISABLE = $00000002;
ACM_DRIVERPRIORITYF_ABLEMASK = $00000003;
ACM_DRIVERPRIORITYF_BEGIN = $00010000;
ACM_DRIVERPRIORITYF_END = $00020000;
ACM_DRIVERPRIORITYF_DEFERMASK = $00030000;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmDriverDetails()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
{
ACMDRIVERDETAILS
the ACMDRIVERDETAILS structure is used to get various capabilities from
an ACM driver (codec, converter, filter).
}
const
ACMDRIVERDETAILS_SHORTNAME_CHARS = 32;
ACMDRIVERDETAILS_LONGNAME_CHARS = 128;
ACMDRIVERDETAILS_COPYRIGHT_CHARS = 80;
ACMDRIVERDETAILS_LICENSING_CHARS = 128;
ACMDRIVERDETAILS_FEATURES_CHARS = 512;
type
PACMDriverDetailsA = ^TACMDriverDetailsA;
PACMDriverDetailsW = ^TACMDriverDetailsW;
PACMDriverDetails = PACMDriverDetailsA;
TACMDriverDetailsA = packed record
cbStruct : DWORD; { number of valid bytes in structure }
fccType : FOURCC; { compressor type 'audc' }
fccComp : FOURCC; { sub-type (not used; reserved) }
wMid : WORD; { manufacturer id }
wPid : WORD; { product id }
vdwACM : DWORD; { version of the ACM *compiled* for }
vdwDriver : DWORD; { version of the driver }
fdwSupport : DWORD; { misc. support flags }
cFormatTags : DWORD; { total unique format tags supported }
cFilterTags : DWORD; { total unique filter tags supported }
hicon : HICON; { handle to custom icon }
szShortName : array [0..ACMDRIVERDETAILS_SHORTNAME_CHARS-1] of char;
szLongName : array [0..ACMDRIVERDETAILS_LONGNAME_CHARS-1] of char;
szCopyright : array [0..ACMDRIVERDETAILS_COPYRIGHT_CHARS-1] of char;
szLicensing : array [0..ACMDRIVERDETAILS_LICENSING_CHARS-1] of char;
szFeatures : array [0..ACMDRIVERDETAILS_FEATURES_CHARS-1] of char;
end;
TACMDriverDetailsW = packed record
cbStruct : DWORD; { number of valid bytes in structure }
fccType : DWORD; { compressor type 'audc' }
fccComp : DWORD; { sub-type (not used; reserved) }
wMid : WORD; { manufacturer id }
wPid : WORD; { product id }
vdwACM : DWORD; { version of the ACM *compiled* for }
vdwDriver : DWORD; { version of the driver }
fdwSupport : DWORD; { misc. support flags }
cFormatTags : DWORD; { total unique format tags supported }
cFilterTags : DWORD; { total unique filter tags supported }
hicon : HICON; { handle to custom icon }
szShortName : array [0..ACMDRIVERDETAILS_SHORTNAME_CHARS-1] of WCHAR;
szLongName : array [0..ACMDRIVERDETAILS_LONGNAME_CHARS-1] of WCHAR;
szCopyright : array [0..ACMDRIVERDETAILS_COPYRIGHT_CHARS-1] of WCHAR;
szLicensing : array [0..ACMDRIVERDETAILS_LICENSING_CHARS-1] of WCHAR;
szFeatures : array [0..ACMDRIVERDETAILS_FEATURES_CHARS-1] of WCHAR;
end;
TACMDriverDetails = TACMDriverDetailsA;
{
ACMDRIVERDETAILS.fccType
ACMDRIVERDETAILS_FCCTYPE_AUDIOCODEC: the FOURCC used in the fccType
field of the ACMDRIVERDETAILS structure to specify that this is an ACM
codec designed for audio.
ACMDRIVERDETAILS.fccComp
ACMDRIVERDETAILS_FCCCOMP_UNDEFINED: the FOURCC used in the fccComp
field of the ACMDRIVERDETAILS structure. this is currently an unused
field.
}
const
FOURCC_ACMDRIVERDETAILS_FCCTYPE_AUDIOCODEC = $63647561; { 'audc' }
FOURCC_ACMDRIVERDETAILS_FCCCOMP_UNDEFINED = $00000000; { $0000 }
{
the following flags are used to specify the type of conversion(s) that
the converter/codec/filter supports. these are placed in the fdwSupport
field of the ACMDRIVERDETAILS structure. note that a converter can
support one or more of these flags in any combination.
ACMDRIVERDETAILS_SUPPORTF_CODEC: this flag is set if the driver supports
conversions from one format tag to another format tag. for example, if a
converter compresses WAVE_FORMAT_PCM to WAVE_FORMAT_ADPCM, then this bit
should be set.
ACMDRIVERDETAILS_SUPPORTF_CONVERTER: this flags is set if the driver
supports conversions on the same format tag. as an example, the PCM
converter that is built into the ACM sets this bit (and only this bit)
because it converts only PCM formats (bits, sample rate).
ACMDRIVERDETAILS_SUPPORTF_FILTER: this flag is set if the driver supports
transformations on a single format. for example, a converter that changed
the 'volume' of PCM data would set this bit. 'echo' and 'reverb' are
also filter types.
ACMDRIVERDETAILS_SUPPORTF_HARDWARE: this flag is set if the driver supports
hardware input and/or output through a waveform device.
ACMDRIVERDETAILS_SUPPORTF_ASYNC: this flag is set if the driver supports
async conversions.
ACMDRIVERDETAILS_SUPPORTF_LOCAL: this flag is set _by the ACM_ if a
driver has been installed local to the current task. this flag is also
set in the fdwSupport argument to the enumeration callback function
for drivers.
ACMDRIVERDETAILS_SUPPORTF_DISABLED: this flag is set _by the ACM_ if a
driver has been disabled. this flag is also passed set in the fdwSupport
argument to the enumeration callback function for drivers.
}
const
ACMDRIVERDETAILS_SUPPORTF_CODEC = $00000001;
ACMDRIVERDETAILS_SUPPORTF_CONVERTER = $00000002;
ACMDRIVERDETAILS_SUPPORTF_FILTER = $00000004;
ACMDRIVERDETAILS_SUPPORTF_HARDWARE = $00000008;
ACMDRIVERDETAILS_SUPPORTF_ASYNC = $00000010;
ACMDRIVERDETAILS_SUPPORTF_LOCAL = $40000000;
ACMDRIVERDETAILS_SUPPORTF_DISABLED = $80000000;
function acmDriverDetailsA(hadid: HACMDriverID; padd: PACMDriverDetailsA; fdwDetails: DWORD ):MMRESULT; stdcall;
function acmDriverDetailsW(hadid: HACMDriverID; padd: PACMDriverDetailsW; fdwDetails: DWORD ):MMRESULT; stdcall;
function acmDriverDetails(hadid: HACMDriverID; padd: PACMDriverDetails; fdwDetails: DWORD ):MMRESULT; stdcall;
{ -------------------------------------------------------------------------
ACM Format Tags
--------------------------------------------------------------------------}
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFormatTagDetails()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
const
ACMFORMATTAGDETAILS_FORMATTAG_CHARS = 48;
type
PACMFormatTagDetailsA = ^TACMFormatTagDetailsA;
PACMFormatTagDetailsW = ^TACMFormatTagDetailsW;
PACMFormatTagDetails = ^TACMFormatTagDetails;
TACMFormatTagDetailsA = packed record
cbStruct : DWORD;
dwFormatTagIndex : DWORD;
dwFormatTag : DWORD;
cbFormatSize : DWORD;
fdwSupport : DWORD;
cStandardFormats : DWORD;
szFormatTag : array [0..ACMFORMATTAGDETAILS_FORMATTAG_CHARS-1] of char;
end;
TACMFormatTagDetailsW = packed record
cbStruct : DWORD;
dwFormatTagIndex : DWORD;
dwFormatTag : DWORD;
cbFormatSize : DWORD;
fdwSupport : DWORD;
cStandardFormats : DWORD;
szFormatTag : array [0..ACMFORMATTAGDETAILS_FORMATTAG_CHARS-1] of WCHAR;
end;
TACMFormatTagDetails = TACMFormatTagDetailsA;
function acmFormatTagDetailsA(had: HACMDriver; paftd: PACMFormatTagDetailsA; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFormatTagDetailsW(had: HACMDriver; paftd: PACMFormatTagDetailsW; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFormatTagDetails(had: HACMDriver; paftd: PACMFormatTagDetails; fdwDetails: DWORD):MMRESULT; stdcall;
const
ACM_FORMATTAGDETAILSF_INDEX = $00000000;
ACM_FORMATTAGDETAILSF_FORMATTAG = $00000001;
ACM_FORMATTAGDETAILSF_LARGESTSIZE = $00000002;
ACM_FORMATTAGDETAILSF_QUERYMASK = $0000000F;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFormatTagEnum()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
type
TFNACMFormatTagEnumCbA = function(hadid: HACMDriverID; paftd: PACMFormatTagDetailsA; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFormatTagEnumCbW = function(hadid: HACMDriverID; paftd: PACMFormatTagDetailsW; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFormatTagEnumCb = TFNACMFormatTagEnumCbA;
function acmFormatTagEnumA(had: HACMDriver; paftd: PACMFormatTagDetailsA; fnCallback: TFNACMFormatTagEnumCbA; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFormatTagEnumW(had: HACMDriver; paftd: PACMFormatTagDetailsA; fnCallback: TFNACMFormatTagEnumCbW; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFormatTagEnum(had: HACMDriver; paftd: PACMFormatTagDetailsA; fnCallback: TFNACMFormatTagEnumCb; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
{ --------------------------------------------------------------------------
ACM Formats
-------------------------------------------------------------------------- }
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFormatDetails()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
const
ACMFORMATDETAILS_FORMAT_CHARS = 128;
type
PACMFormatDetailsA = ^TACMFormatDetailsA;
PACMFormatDetailsW = ^TACMFormatDetailsW;
PACMFormatDetails = ^TACMFormatDetails;
TACMFormatDetailsA = packed record
cbStruct : DWORD;
dwFormatIndex : DWORD;
dwFormatTag : DWORD;
fdwSupport : DWORD;
pwfx : PWaveFormatEx;
cbwfx : DWORD;
szFormat : array [0..ACMFORMATDETAILS_FORMAT_CHARS-1] of char;
end;
TACMFormatDetailsW = packed record
cbStruct : DWORD;
dwFormatIndex : DWORD;
dwFormatTag : DWORD;
fdwSupport : DWORD;
pwfx : PWaveFormatEx;
cbwfx : DWORD;
szFormat : array [0..ACMFORMATDETAILS_FORMAT_CHARS-1] of WCHAR;
end;
TACMFormatDetails = TACMFormatDetailsA;
function acmFormatDetailsA(had: HACMDriver; pafd: PACMFormatDetailsA; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFormatDetailsW(had: HACMDriver; pafd: PACMFormatDetailsW; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFormatDetails(had: HACMDriver; pafd: PACMFormatDetails; fdwDetails: DWORD):MMRESULT; stdcall;
const
ACM_FORMATDETAILSF_INDEX = $00000000;
ACM_FORMATDETAILSF_FORMAT = $00000001;
ACM_FORMATDETAILSF_QUERYMASK = $0000000F;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFormatEnum()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
type
TFNACMFormatEnumCbA = function(hadid: HACMDriverID; paftd: PACMFormatDetailsA; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFormatEnumCbW = function(hadid: HACMDriverID; paftd: PACMFormatDetailsW; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFormatEnumCb = TFNACMFormatEnumCbA;
function acmFormatEnumA(had: HACMDriver; pafd: PACMFormatDetailsA; fnCallback: TFNACMFormatEnumCbA; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFormatEnumW(had: HACMDriver; pafd: PACMFormatDetailsW; fnCallback: TFNACMFormatEnumCbW; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFormatEnum(had: HACMDriver; pafd: PACMFormatDetails; fnCallback: TFNACMFormatEnumCb; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
const
ACM_FORMATENUMF_WFORMATTAG = $00010000;
ACM_FORMATENUMF_NCHANNELS = $00020000;
ACM_FORMATENUMF_NSAMPLESPERSEC = $00040000;
ACM_FORMATENUMF_WBITSPERSAMPLE = $00080000;
ACM_FORMATENUMF_CONVERT = $00100000;
ACM_FORMATENUMF_SUGGEST = $00200000;
ACM_FORMATENUMF_HARDWARE = $00400000;
ACM_FORMATENUMF_INPUT = $00800000;
ACM_FORMATENUMF_OUTPUT = $01000000;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFormatSuggest()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
function acmFormatSuggest(had: HACMDriver; pwfxSrc: PWaveFormatEx; pwfxDst: PWaveFormatEx; cbwfxDst: DWORD; fdwSuggest: DWORD):MMRESULT; stdcall;
const
ACM_FORMATSUGGESTF_WFORMATTAG = $00010000;
ACM_FORMATSUGGESTF_NCHANNELS = $00020000;
ACM_FORMATSUGGESTF_NSAMPLESPERSEC = $00040000;
ACM_FORMATSUGGESTF_WBITSPERSAMPLE = $00080000;
ACM_FORMATSUGGESTF_TYPEMASK = $00FF0000;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFormatChoose()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
const
ACMHELPMSGSTRING : array [0..13] of char = 'acmchoose_help';
ACMHELPMSGSTRINGA : array [0..13] of char = 'acmchoose_help';
ACMHELPMSGSTRINGW : array [0..13] of WCHAR = WideString('acmchoose_help');
ACMHELPMSGCONTEXTMENU : array [0..20] of char = 'acmchoose_contextmenu';
ACMHELPMSGCONTEXTMENUA : array [0..20] of char = 'acmchoose_contextmenu';
ACMHELPMSGCONTEXTMENUW : array [0..20] of WCHAR = WideString('acmchoose_contextmenu');
ACMHELPMSGCONTEXTHELP : array [0..20] of char = 'acmchoose_contexthelp';
ACMHELPMSGCONTEXTHELPA : array [0..20] of char = 'acmchoose_contexthelp';
ACMHELPMSGCONTEXTHELPW : array [0..20] of WCHAR = WideString('acmchoose_contexthelp');
{
ACMHELPMSGSTRING : array [0..13] of char = 'acmchoose_help';
ACMHELPMSGSTRINGA : array [0..13] of char = 'acmchoose_help';
ACMHELPMSGSTRINGW : array [0..13] of WCHAR = 'acmchoose_help';
ACMHELPMSGCONTEXTMENU : array [0..20] of char = 'acmchoose_contextmenu';
ACMHELPMSGCONTEXTMENUA : array [0..20] of char = 'acmchoose_contextmenu';
ACMHELPMSGCONTEXTMENUW : array [0..20] of WCHAR = 'acmchoose_contextmenu';
ACMHELPMSGCONTEXTHELP : array [0..20] of char = 'acmchoose_contexthelp';
ACMHELPMSGCONTEXTHELPA : array [0..20] of char = 'acmchoose_contexthelp';
ACMHELPMSGCONTEXTHELPW : array [0..20] of WCHAR = 'acmchoose_contexthelp';
}
{
MM_ACM_FORMATCHOOSE is sent to hook callbacks by the Format Chooser
Dialog...
}
const
MM_ACM_FORMATCHOOSE = $8000;
FORMATCHOOSE_MESSAGE = 0;
FORMATCHOOSE_FORMATTAG_VERIFY = (FORMATCHOOSE_MESSAGE+0);
FORMATCHOOSE_FORMAT_VERIFY = (FORMATCHOOSE_MESSAGE+1);
FORMATCHOOSE_CUSTOM_VERIFY = (FORMATCHOOSE_MESSAGE+2);
type
TFNACMFormatChooseHookProcA = function(hwnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM):UINT; stdcall;
TFNACMFormatChooseHookProcW = function(hwnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM):UINT; stdcall;
TFNACMFormatChooseHookProc = TFNACMFormatChooseHookProcA;
{ ---------------------------------------------------------------------------- }
type
PACMFormatChooseA = ^TACMFormatChooseA;
PACMFormatChooseW = ^TACMFormatChooseW;
PACMFormatChoose = ^TACMFormatChoose;
TACMFormatChooseA = packed record
cbStruct : DWORD; { sizeof(ACMFORMATCHOOSE) }
fdwStyle : DWORD; { chooser style flags }
hwndOwner : HWND; { caller's window handle }
pwfx : PWaveFormatEx; { ptr to wfx buf to receive choice }
cbwfx : DWORD; { size of mem buf for pwfx }
pszTitle : LPCSTR; { dialog box title bar }
szFormatTag : array [0..ACMFORMATTAGDETAILS_FORMATTAG_CHARS-1] of char;
szFormat : array [0..ACMFORMATDETAILS_FORMAT_CHARS-1] of char;
pszName : LPCSTR; { custom name selection }
cchName : DWORD; { size in chars of mem buf for pszName }
fdwEnum : DWORD; { format enumeration restrictions }
pwfxEnum : PWaveFormatEx; { format describing restrictions }
hInstance : HINST; { app instance containing dlg template }
pszTemplateName : LPCSTR; { custom template name }
lCustData : LPARAM; { data passed to hook fn. }
pfnHook : TFNACMFormatChooseHookProcA; { ptr to hook function }
end;
TACMFormatChooseW = packed record
cbStruct : DWORD; { sizeof(ACMFORMATCHOOSE) }
fdwStyle : DWORD; { chooser style flags }
hwndOwner : HWND; { caller's window handle }
pwfx : PWaveFormatEx; { ptr to wfx buf to receive choice }
cbwfx : DWORD; { size of mem buf for pwfx }
pszTitle : LPWSTR; { dialog box title bar }
szFormatTag : array [0..ACMFORMATTAGDETAILS_FORMATTAG_CHARS-1] of WCHAR;
szFormat : array [0..ACMFORMATDETAILS_FORMAT_CHARS-1] of WCHAR;
pszName : LPWSTR; { custom name selection }
cchName : DWORD; { size in chars of mem buf for pszName }
fdwEnum : DWORD; { format enumeration restrictions }
pwfxEnum : PWaveFormatEx; { format describing restrictions }
hInstance : HINST; { app instance containing dlg template }
pszTemplateName : LPWSTR; { custom template name }
lCustData : LPARAM; { data passed to hook fn. }
pfnHook : TFNACMFormatChooseHookProcA; { ptr to hook function }
end;
TACMFormatChoose = TACMFormatChooseA;
{
ACMFORMATCHOOSE.fdwStyle
}
const
ACMFORMATCHOOSE_STYLEF_SHOWHELP = $00000004;
ACMFORMATCHOOSE_STYLEF_ENABLEHOOK = $00000008;
ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE = $00000010;
ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE = $00000020;
ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT = $00000040;
ACMFORMATCHOOSE_STYLEF_CONTEXTHELP = $00000080;
function acmFormatChooseA(pafmtc: PACMFormatChooseA):MMRESULT; stdcall;
function acmFormatChooseW(pafmtc: PACMFormatChooseW):MMRESULT; stdcall;
function acmFormatChoose(pafmtc: PACMFormatChoose):MMRESULT; stdcall;
{ --------------------------------------------------------------------------
ACM Filter Tags
-------------------------------------------------------------------------- }
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFilterTagDetails()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
const
ACMFILTERTAGDETAILS_FILTERTAG_CHARS = 48;
type
PACMFilterTagDetailsA = ^TACMFilterTagDetailsA;
PACMFilterTagDetailsW = ^TACMFilterTagDetailsW;
PACMFilterTagDetails = ^TACMFilterTagDetails;
TACMFilterTagDetailsA = packed record
cbStruct : DWORD;
dwFilterTagIndex : DWORD;
dwFilterTag : DWORD;
cbFilterSize : DWORD;
fdwSupport : DWORD;
cStandardFilters : DWORD;
szFilterTag : array [0..ACMFILTERTAGDETAILS_FILTERTAG_CHARS-1] of char;
end;
TACMFilterTagDetailsW = packed record
cbStruct : DWORD;
dwFilterTagIndex : DWORD;
dwFilterTag : DWORD;
cbFilterSize : DWORD;
fdwSupport : DWORD;
cStandardFilters : DWORD;
szFilterTag : array [0..ACMFILTERTAGDETAILS_FILTERTAG_CHARS-1] of WCHAR;
end;
TACMFilterTagDetails = TACMFilterTagDetailsA;
function acmFilterTagDetailsA(had: HACMDriver; paftd: PACMFilterTagDetailsA; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFilterTagDetailsW(had: HACMDriver; paftd: PACMFilterTagDetailsW; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFilterTagDetails(had: HACMDriver; paftd: PACMFilterTagDetails; fdwDetails: DWORD):MMRESULT; stdcall;
const
ACM_FILTERTAGDETAILSF_INDEX = $00000000;
ACM_FILTERTAGDETAILSF_FILTERTAG = $00000001;
ACM_FILTERTAGDETAILSF_LARGESTSIZE = $00000002;
ACM_FILTERTAGDETAILSF_QUERYMASK = $0000000F;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFilterTagEnum()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
type
TFNACMFilterTagEnumCbA = function(hadid: HACMDriverID; paftd: PACMFilterTagDetailsA; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFilterTagEnumCbW = function(hadid: HACMDriverID; paftd: PACMFilterTagDetailsW; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFilterTagEnumCb = TFNACMFilterTagEnumCbA;
function acmFilterTagEnumA(had: HACMDriver; paftd: PACMFilterTagDetailsA; fnCallback: TFNACMFilterTagEnumCbA; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFilterTagEnumW(had: HACMDriver; paftd: PACMFilterTagDetailsW; fnCallback: TFNACMFilterTagEnumCbW; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFilterTagEnum(had: HACMDriver; paftd: PACMFilterTagDetails; fnCallback: TFNACMFilterTagEnumCb; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
{ --------------------------------------------------------------------------
ACM Filters
-------------------------------------------------------------------------- }
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFilterDetails()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
const
ACMFILTERDETAILS_FILTER_CHARS = 128;
type
PACMFilterDetailsA = ^TACMFilterDetailsA;
PACMFilterDetailsW = ^TACMFilterDetailsW;
PACMFilterDetails = ^TACMFilterDetails;
TACMFilterDetailsA = packed record
cbStruct : DWORD;
dwFilterIndex : DWORD;
dwFilterTag : DWORD;
fdwSupport : DWORD;
pwfltr : PWaveFilter;
cbwfltr : DWORD;
szFilter : array [0..ACMFILTERDETAILS_FILTER_CHARS-1] of char;
end;
TACMFilterDetailsW = packed record
cbStruct : DWORD;
dwFilterIndex : DWORD;
dwFilterTag : DWORD;
fdwSupport : DWORD;
pwfltr : PWaveFilter;
cbwfltr : DWORD;
szFilter : array [0..ACMFILTERDETAILS_FILTER_CHARS-1] of WCHAR;
end;
TACMFilterDetails = TACMFilterDetailsA;
function acmFilterDetailsA(had: HACMDriver; pafd: PACMFilterDetailsA; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFilterDetailsW(had: HACMDriver; pafd: PACMFilterDetailsW; fdwDetails: DWORD):MMRESULT; stdcall;
function acmFilterDetails(had: HACMDriver; pafd: PACMFilterDetails; fdwDetails: DWORD):MMRESULT; stdcall;
const
ACM_FILTERDETAILSF_INDEX = $00000000;
ACM_FILTERDETAILSF_FILTER = $00000001;
ACM_FILTERDETAILSF_QUERYMASK = $0000000F;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFilterEnum()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
type
TFNACMFilterEnumCbA = function(hadid: HACMDriverID; paftd: PACMFilterDetailsA; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFilterEnumCbW = function(hadid: HACMDriverID; paftd: PACMFilterDetailsW; dwInstance: DWORD; fdwSupport: DWORD):BOOL; stdcall;
TFNACMFilterEnumCb = TFNACMFilterEnumCbA;
function acmFilterEnumA(had: HACMDriver; pafd: PACMFilterDetailsA; fnCallback: TFNACMFilterEnumCbA; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFilterEnumW(had: HACMDriver; pafd: PACMFilterDetailsW; fnCallback: TFNACMFilterEnumCbW; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
function acmFilterEnum(had: HACMDriver; pafd: PACMFilterDetails; fnCallback: TFNACMFilterEnumCb; dwInstance: DWORD; fdwEnum: DWORD):MMRESULT; stdcall;
const
ACM_FILTERENUMF_DWFILTERTAG = $00010000;
{ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acmFilterChoose()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
{
MM_ACM_FILTERCHOOSE is sent to hook callbacks by the Filter Chooser
Dialog...
}
const
MM_ACM_FILTERCHOOSE = $8000;
FILTERCHOOSE_MESSAGE = 0;
FILTERCHOOSE_FILTERTAG_VERIFY = (FILTERCHOOSE_MESSAGE+0);
FILTERCHOOSE_FILTER_VERIFY = (FILTERCHOOSE_MESSAGE+1);
FILTERCHOOSE_CUSTOM_VERIFY = (FILTERCHOOSE_MESSAGE+2);
type
TFNACMFilterChooseHookProcA = function(hwnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM):UINT; stdcall;
TFNACMFilterChooseHookProcW = function(hwnd: HWND; uMsg: UINT; wParam: WPARAM; lParam: LPARAM):UINT; stdcall;
TFNACMFilterChooseHookProc = TFNACMFilterChooseHookProcA;
{
ACMFILTERCHOOSE
}
type
PACMFilterChooseA = ^TACMFilterChooseA;
PACMFilterChooseW = ^TACMFilterChooseW;
PACMFilterChoose = ^TACMFilterChoose;
TACMFilterChooseA = packed record
cbStruct : DWORD; { sizeof(ACMFILTERCHOOSE) }
fdwStyle : DWORD; { chooser style flags }
hwndOwner : HWND; { caller's window handle }
pwfltr : PWaveFilter; { ptr to wfltr buf to receive choice }
cbwfltr : DWORD; { size of mem buf for pwfltr }
pszTitle : LPCSTR;
szFilterTag : array [0..ACMFILTERTAGDETAILS_FILTERTAG_CHARS-1] of char;
szFilter : array [0..ACMFILTERDETAILS_FILTER_CHARS-1] of char;
pszName : LPCSTR; { custom name selection }
cchName : DWORD; { size in chars of mem buf for pszName }
fdwEnum : DWORD; { filter enumeration restrictions }
pwfltrEnum : PWaveFilter; { filter describing restrictions }
hInstance : HINST; { app instance containing dlg template }
pszTemplateName : LPCSTR; { custom template name }
lCustData : LPARAM; { data passed to hook fn. }
pfnHook : TFNACMFilterChooseHookProcA; { ptr to hook function }
end;
TACMFilterChooseW = packed record
cbStruct : DWORD; { sizeof(ACMFILTERCHOOSE) }
fdwStyle : DWORD; { chooser style flags }
hwndOwner : HWND; { caller's window handle }
pwfltr : PWaveFilter; { ptr to wfltr buf to receive choice }
cbwfltr : DWORD; { size of mem buf for pwfltr }
pszTitle : LPCWSTR;
szFilterTag : array [0..ACMFILTERTAGDETAILS_FILTERTAG_CHARS-1] of WCHAR;
szFilter : array [0..ACMFILTERDETAILS_FILTER_CHARS-1] of WCHAR;
pszName : LPCWSTR; { custom name selection }
cchName : DWORD; { size in chars of mem buf for pszName }
fdwEnum : DWORD; { filter enumeration restrictions }
pwfltrEnum : PWaveFilter; { filter describing restrictions }
hInstance : HINST; { app instance containing dlg template }
pszTemplateName : LPCWSTR; { custom template name }
lCustData : LPARAM; { data passed to hook fn. }
pfnHook : TFNACMFilterChooseHookProcA; { ptr to hook function }
end;
TACMFilterChoose = TACMFilterChooseA;
{
ACMFILTERCHOOSE.fdwStyle
}
const
ACMFILTERCHOOSE_STYLEF_SHOWHELP = $00000004;
ACMFILTERCHOOSE_STYLEF_ENABLEHOOK = $00000008;
ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATE = $00000010;
ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATEHANDLE = $00000020;
ACMFILTERCHOOSE_STYLEF_INITTOFILTERSTRUCT = $00000040;
ACMFILTERCHOOSE_STYLEF_CONTEXTHELP = $00000080;