summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/ntddaux.h
blob: 13840dde4c531bc43b912647815b90856f8f7d16 (plain) (blame)
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
/*++ BUILD Version: 0001    // Increment this if a change has global effects

Copyright (c) 1992-1993  Microsoft Corporation

Module Name:

    ntddaux.h

Abstract:

    This include file defines all constants and types for
    accessing an NT auxiliary sound devices.

Author:

    Robin Speed (RobinSp) - 24-Aug-1992

Revision History:

--*/

#ifndef _NTDDAUX_
#define _NTDDAUX_

#include <ntddsnd.h>    // general sound stuff

#define IOCTL_AUX_BASE 0x0100

//
// Device Name - this string is the name of the device.  It is the name
// that when added to the name of the root of the device tree and with
// the device number appended, gives the name of the device required for
// a call to NtOpenFile.
// So for example, if the root is \Device and the Device type is
// MMAux and the device number is 2, the full name is \Device\MMAux2
//

#define DD_AUX_DEVICE_NAME     "\\Device\\MMAux"
#define DD_AUX_DEVICE_NAME_U  L"\\Device\\MMAux"

//
// WAVE device driver IOCTL set
//

#define IOCTL_AUX_GET_CAPABILITIES     CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_AUX_SET_VOLUME           CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_AUX_GET_VOLUME           CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)

//
// Input and output are AUX_DD_VOLUME structure.
// Completes when real device volume != volume passed in.
// Returns new volume
//
#define IOCTL_SOUND_GET_CHANGED_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)

//
// Aux volume structure
//

typedef struct _AUX_DD_VOLUME {
    ULONG   Left;
    ULONG   Right;
} AUX_DD_VOLUME, *PAUX_DD_VOLUME;

#define AUX_DD_MAX_VOLUME 0xFFFFFFFF // Maximum volume

//
// Data returned by IOCTL_AUX_GET_CAPABILITIES is AUXCAPSW structure
// defined in mmsystem.h
//

#endif // _NTDDAUX_