|
|
1.1 root 1: /*++ BUILD Version: 0001 // Increment this if a change has global effects
2:
3: Copyright (c) 1992-1993 Microsoft Corporation
4:
5: Module Name:
6:
7: ntddaux.h
8:
9: Abstract:
10:
11: This include file defines all constants and types for
12: accessing an NT auxiliary sound devices.
13:
14: Author:
15:
16: Robin Speed (RobinSp) - 24-Aug-1992
17:
18: Revision History:
19:
20: --*/
21:
22: #ifndef _NTDDAUX_
23: #define _NTDDAUX_
24:
25: #include <ntddsnd.h> // general sound stuff
26:
27: #define IOCTL_AUX_BASE 0x0100
28:
29: //
30: // Device Name - this string is the name of the device. It is the name
31: // that when added to the name of the root of the device tree and with
32: // the device number appended, gives the name of the device required for
33: // a call to NtOpenFile.
34: // So for example, if the root is \Device and the Device type is
35: // MMAux and the device number is 2, the full name is \Device\MMAux2
36: //
37:
38: #define DD_AUX_DEVICE_NAME "\\Device\\MMAux"
39: #define DD_AUX_DEVICE_NAME_U L"\\Device\\MMAux"
40:
41: //
42: // WAVE device driver IOCTL set
43: //
44:
45: #define IOCTL_AUX_GET_CAPABILITIES CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)
46: #define IOCTL_AUX_SET_VOLUME CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS)
47: #define IOCTL_AUX_GET_VOLUME CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)
48:
49: //
50: // Input and output are AUX_DD_VOLUME structure.
51: // Completes when real device volume != volume passed in.
52: // Returns new volume
53: //
54: #define IOCTL_SOUND_GET_CHANGED_VOLUME CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)
55:
56: //
57: // Aux volume structure
58: //
59:
60: typedef struct _AUX_DD_VOLUME {
61: ULONG Left;
62: ULONG Right;
63: } AUX_DD_VOLUME, *PAUX_DD_VOLUME;
64:
65: #define AUX_DD_MAX_VOLUME 0xFFFFFFFF // Maximum volume
66:
67: //
68: // Data returned by IOCTL_AUX_GET_CAPABILITIES is AUXCAPSW structure
69: // defined in mmsystem.h
70: //
71:
72: #endif // _NTDDAUX_
73:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.