ReactOS  0.4.15-dev-345-g5d88487
mmdef.h File Reference

Go to the source code of this file.

Macros

#define EXPORT   __declspec(dllexport)
 
#define SOUND_MAX_DEVICE_NAME   1024
 
#define SOUND_MAX_DEVICES   256
 
#define WAVE_IN_DEVICE_NAME   "\\Device\\WaveIn"
 
#define WAVE_IN_DEVICE_NAME_U   L"\\Device\\WaveIn"
 
#define WAVE_OUT_DEVICE_NAME   "\\Device\\WaveOut"
 
#define WAVE_OUT_DEVICE_NAME_U   L"\\Device\\WaveOut"
 
#define MIDI_IN_DEVICE_NAME   "\\Device\\MidiIn"
 
#define MIDI_IN_DEVICE_NAME_U   L"\\Device\\MidiIn"
 
#define MIDI_OUT_DEVICE_NAME   "\\Device\\MidiOut"
 
#define MIDI_OUT_DEVICE_NAME_U   L"\\Device\\MidiOut"
 
#define AUX_DEVICE_NAME   "\\Device\\MMAux"
 
#define AUX_DEVICE_NAME_U   L"\\Device\\MMAux"
 
#define IOCTL_SOUND_BASE   FILE_DEVICE_SOUND
 
#define IOCTL_WAVE_BASE   0x0000
 
#define IOCTL_MIDI_BASE   0x0080
 
#define IOCTL_AUX_BASE   0x0100
 
#define IOCTL_WAVE_QUERY_FORMAT   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_WAVE_SET_FORMAT   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0002, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_GET_CAPABILITIES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_WAVE_SET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0004, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_GET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0005, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_GET_POSITION   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0006, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_SET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0007, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_WAVE_GET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0008, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_WAVE_SET_PITCH   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0009, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_GET_PITCH   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000A, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_SET_PLAYBACK_RATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000B, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_GET_PLAYBACK_RATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000C, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_PLAY   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000D, METHOD_IN_DIRECT, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_RECORD   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000E, METHOD_OUT_DIRECT, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_BREAK_LOOP   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000F, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_WAVE_SET_LOW_PRIORITY   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0010, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_MIDI_GET_CAPABILITIES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_MIDI_SET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0002, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_MIDI_GET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0003, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_MIDI_SET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_MIDI_GET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0005, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_MIDI_PLAY   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0006, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_MIDI_RECORD   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0007, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_MIDI_CACHE_PATCHES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0008, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_MIDI_CACHE_DRUM_PATCHES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0009, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#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)
 
#define IOCTL_SOUND_GET_CHANGED_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)
 

Macro Definition Documentation

◆ AUX_DEVICE_NAME

#define AUX_DEVICE_NAME   "\\Device\\MMAux"

Definition at line 39 of file mmdef.h.

◆ AUX_DEVICE_NAME_U

#define AUX_DEVICE_NAME_U   L"\\Device\\MMAux"

Definition at line 40 of file mmdef.h.

◆ EXPORT

#define EXPORT   __declspec(dllexport)

Definition at line 16 of file mmdef.h.

◆ IOCTL_AUX_BASE

#define IOCTL_AUX_BASE   0x0100

Definition at line 46 of file mmdef.h.

◆ IOCTL_AUX_GET_CAPABILITIES

#define IOCTL_AUX_GET_CAPABILITIES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 80 of file mmdef.h.

◆ IOCTL_AUX_GET_VOLUME

#define IOCTL_AUX_GET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 82 of file mmdef.h.

◆ IOCTL_AUX_SET_VOLUME

#define IOCTL_AUX_SET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0002, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 81 of file mmdef.h.

◆ IOCTL_MIDI_BASE

#define IOCTL_MIDI_BASE   0x0080

Definition at line 45 of file mmdef.h.

◆ IOCTL_MIDI_CACHE_DRUM_PATCHES

#define IOCTL_MIDI_CACHE_DRUM_PATCHES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0009, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 77 of file mmdef.h.

◆ IOCTL_MIDI_CACHE_PATCHES

#define IOCTL_MIDI_CACHE_PATCHES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0008, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 76 of file mmdef.h.

◆ IOCTL_MIDI_GET_CAPABILITIES

#define IOCTL_MIDI_GET_CAPABILITIES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 69 of file mmdef.h.

◆ IOCTL_MIDI_GET_STATE

#define IOCTL_MIDI_GET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0003, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 71 of file mmdef.h.

◆ IOCTL_MIDI_GET_VOLUME

#define IOCTL_MIDI_GET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0005, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 73 of file mmdef.h.

◆ IOCTL_MIDI_PLAY

#define IOCTL_MIDI_PLAY   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0006, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 74 of file mmdef.h.

◆ IOCTL_MIDI_RECORD

#define IOCTL_MIDI_RECORD   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0007, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 75 of file mmdef.h.

◆ IOCTL_MIDI_SET_STATE

#define IOCTL_MIDI_SET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0002, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 70 of file mmdef.h.

◆ IOCTL_MIDI_SET_VOLUME

#define IOCTL_MIDI_SET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_MIDI_BASE + 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 72 of file mmdef.h.

◆ IOCTL_SOUND_BASE

#define IOCTL_SOUND_BASE   FILE_DEVICE_SOUND

Definition at line 43 of file mmdef.h.

◆ IOCTL_SOUND_GET_CHANGED_VOLUME

#define IOCTL_SOUND_GET_CHANGED_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_AUX_BASE + 0x0004, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 83 of file mmdef.h.

◆ IOCTL_WAVE_BASE

#define IOCTL_WAVE_BASE   0x0000

Definition at line 44 of file mmdef.h.

◆ IOCTL_WAVE_BREAK_LOOP

#define IOCTL_WAVE_BREAK_LOOP   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000F, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 64 of file mmdef.h.

◆ IOCTL_WAVE_GET_CAPABILITIES

#define IOCTL_WAVE_GET_CAPABILITIES   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0003, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 52 of file mmdef.h.

◆ IOCTL_WAVE_GET_PITCH

#define IOCTL_WAVE_GET_PITCH   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000A, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 59 of file mmdef.h.

◆ IOCTL_WAVE_GET_PLAYBACK_RATE

#define IOCTL_WAVE_GET_PLAYBACK_RATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000C, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 61 of file mmdef.h.

◆ IOCTL_WAVE_GET_POSITION

#define IOCTL_WAVE_GET_POSITION   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0006, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 55 of file mmdef.h.

◆ IOCTL_WAVE_GET_STATE

#define IOCTL_WAVE_GET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0005, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 54 of file mmdef.h.

◆ IOCTL_WAVE_GET_VOLUME

#define IOCTL_WAVE_GET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0008, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 57 of file mmdef.h.

◆ IOCTL_WAVE_PLAY

#define IOCTL_WAVE_PLAY   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000D, METHOD_IN_DIRECT, FILE_WRITE_ACCESS)

Definition at line 62 of file mmdef.h.

◆ IOCTL_WAVE_QUERY_FORMAT

#define IOCTL_WAVE_QUERY_FORMAT   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0001, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 50 of file mmdef.h.

◆ IOCTL_WAVE_RECORD

#define IOCTL_WAVE_RECORD   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000E, METHOD_OUT_DIRECT, FILE_WRITE_ACCESS)

Definition at line 63 of file mmdef.h.

◆ IOCTL_WAVE_SET_FORMAT

#define IOCTL_WAVE_SET_FORMAT   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0002, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 51 of file mmdef.h.

◆ IOCTL_WAVE_SET_LOW_PRIORITY

#define IOCTL_WAVE_SET_LOW_PRIORITY   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0010, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 65 of file mmdef.h.

◆ IOCTL_WAVE_SET_PITCH

#define IOCTL_WAVE_SET_PITCH   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0009, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 58 of file mmdef.h.

◆ IOCTL_WAVE_SET_PLAYBACK_RATE

#define IOCTL_WAVE_SET_PLAYBACK_RATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x000B, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 60 of file mmdef.h.

◆ IOCTL_WAVE_SET_STATE

#define IOCTL_WAVE_SET_STATE   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0004, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 53 of file mmdef.h.

◆ IOCTL_WAVE_SET_VOLUME

#define IOCTL_WAVE_SET_VOLUME   CTL_CODE(IOCTL_SOUND_BASE, IOCTL_WAVE_BASE + 0x0007, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 56 of file mmdef.h.

◆ MIDI_IN_DEVICE_NAME

#define MIDI_IN_DEVICE_NAME   "\\Device\\MidiIn"

Definition at line 34 of file mmdef.h.

◆ MIDI_IN_DEVICE_NAME_U

#define MIDI_IN_DEVICE_NAME_U   L"\\Device\\MidiIn"

Definition at line 35 of file mmdef.h.

◆ MIDI_OUT_DEVICE_NAME

#define MIDI_OUT_DEVICE_NAME   "\\Device\\MidiOut"

Definition at line 36 of file mmdef.h.

◆ MIDI_OUT_DEVICE_NAME_U

#define MIDI_OUT_DEVICE_NAME_U   L"\\Device\\MidiOut"

Definition at line 37 of file mmdef.h.

◆ SOUND_MAX_DEVICE_NAME

#define SOUND_MAX_DEVICE_NAME   1024

Definition at line 22 of file mmdef.h.

◆ SOUND_MAX_DEVICES

#define SOUND_MAX_DEVICES   256

Definition at line 23 of file mmdef.h.

◆ WAVE_IN_DEVICE_NAME

#define WAVE_IN_DEVICE_NAME   "\\Device\\WaveIn"

Definition at line 29 of file mmdef.h.

◆ WAVE_IN_DEVICE_NAME_U

#define WAVE_IN_DEVICE_NAME_U   L"\\Device\\WaveIn"

Definition at line 30 of file mmdef.h.

◆ WAVE_OUT_DEVICE_NAME

#define WAVE_OUT_DEVICE_NAME   "\\Device\\WaveOut"

Definition at line 31 of file mmdef.h.

◆ WAVE_OUT_DEVICE_NAME_U

#define WAVE_OUT_DEVICE_NAME_U   L"\\Device\\WaveOut"

Definition at line 32 of file mmdef.h.