ReactOS 0.4.15-dev-7942-gd23573b
mmddk.h File Reference
#include <mmsystem.h>
#include <winbase.h>
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for mmddk.h:

Go to the source code of this file.

Classes

struct  DRVM_IOCTL_DATA
 
struct  joypos_tag
 
struct  joyrange_tag
 
struct  joyreguservalues_tag
 
struct  joyreghwsettings_tag
 
struct  joyreghwvalues_tag
 
struct  joyreghwconfig_tag
 
struct  joycalibrate_tag
 
struct  PORTALLOC
 
struct  WAVEOPENDESC
 
struct  MIDIOPENSTRMID
 
struct  MIDIOPENDESC
 
struct  tMIXEROPENDESC
 
struct  MCI_OPEN_DRIVER_PARMSA
 
struct  MCI_OPEN_DRIVER_PARMSW
 

Macros

#define MAXWAVEDRIVERS   10
 
#define MAX_MIDIINDRV   (16)
 
#define MAX_MIDIOUTDRV   (16)
 
#define DRVM_INIT   100
 
#define DRVM_EXIT   101
 
#define DRVM_DISABLE   102
 
#define DRVM_ENABLE   103
 
#define DRVM_IOCTL   0x100
 
#define DRVM_ADD_THRU   (DRVM_IOCTL+1)
 
#define DRVM_REMOVE_THRU   (DRVM_IOCTL+2)
 
#define DRVM_IOCTL_LAST   (DRVM_IOCTL+5)
 
#define DRVM_IOCTL_CMD_USER   0x00000000L
 
#define DRVM_IOCTL_CMD_SYSTEM   0x80000000L
 
#define DRVM_MAPPER   0x2000
 
#define DRVM_USER   0x4000
 
#define DRVM_MAPPER_STATUS   (DRVM_MAPPER+0)
 
#define DRVM_MAPPER_RECONFIGURE   (DRVM_MAPPER+1)
 
#define DRVM_MAPPER_PREFERRED_GET   (DRVM_MAPPER+21)
 
#define DRVM_MAPPER_CONSOLEVOICECOM_GET   (DRVM_MAPPER+23)
 
#define DRV_QUERYDRVENTRY   (DRV_RESERVED + 1)
 
#define DRV_QUERYDEVNODE   (DRV_RESERVED + 2)
 
#define DRV_QUERYNAME   (DRV_RESERVED + 3)
 
#define DRV_QUERYDRIVERIDS   (DRV_RESERVED + 4)
 
#define DRV_QUERYMAPPABLE   (DRV_RESERVED + 5)
 
#define DRV_QUERYMODULE   (DRV_RESERVED + 9)
 
#define DRV_PNPINSTALL   (DRV_RESERVED + 11)
 
#define DRV_QUERYDEVICEINTERFACE   (DRV_RESERVED + 12)
 
#define DRV_QUERYDEVICEINTERFACESIZE   (DRV_RESERVED + 13)
 
#define DRV_QUERYSTRINGID   (DRV_RESERVED + 14)
 
#define DRV_QUERYSTRINGIDSIZE   (DRV_RESERVED + 15)
 
#define DRV_QUERYIDFROMSTRINGID   (DRV_RESERVED + 16)
 
#define DRV_QUERYFUNCTIONINSTANCEID   (DRV_RESERVED + 17)
 
#define WODM_INIT   DRVM_INIT
 
#define WODM_GETNUMDEVS   3
 
#define WODM_GETDEVCAPS   4
 
#define WODM_OPEN   5
 
#define WODM_CLOSE   6
 
#define WODM_PREPARE   7
 
#define WODM_UNPREPARE   8
 
#define WODM_WRITE   9
 
#define WODM_PAUSE   10
 
#define WODM_RESTART   11
 
#define WODM_RESET   12
 
#define WODM_GETPOS   13
 
#define WODM_GETPITCH   14
 
#define WODM_SETPITCH   15
 
#define WODM_GETVOLUME   16
 
#define WODM_SETVOLUME   17
 
#define WODM_GETPLAYBACKRATE   18
 
#define WODM_SETPLAYBACKRATE   19
 
#define WODM_BREAKLOOP   20
 
#define WODM_PREFERRED   21
 
#define WODM_MAPPER_STATUS   (DRVM_MAPPER_STATUS + 0)
 
#define WAVEOUT_MAPPER_STATUS_DEVICE   0
 
#define WAVEOUT_MAPPER_STATUS_MAPPED   1
 
#define WAVEOUT_MAPPER_STATUS_FORMAT   2
 
#define WODM_BUSY   21
 
#define WIDM_INIT   DRVM_INIT
 
#define WIDM_GETNUMDEVS   50
 
#define WIDM_GETDEVCAPS   51
 
#define WIDM_OPEN   52
 
#define WIDM_CLOSE   53
 
#define WIDM_PREPARE   54
 
#define WIDM_UNPREPARE   55
 
#define WIDM_ADDBUFFER   56
 
#define WIDM_START   57
 
#define WIDM_STOP   58
 
#define WIDM_RESET   59
 
#define WIDM_GETPOS   60
 
#define WIDM_PREFERRED   61
 
#define WIDM_MAPPER_STATUS   (DRVM_MAPPER_STATUS + 0)
 
#define WAVEIN_MAPPER_STATUS_DEVICE   0
 
#define WAVEIN_MAPPER_STATUS_MAPPED   1
 
#define WAVEIN_MAPPER_STATUS_FORMAT   2
 
#define MODM_INIT   DRVM_INIT
 
#define MODM_GETNUMDEVS   1
 
#define MODM_GETDEVCAPS   2
 
#define MODM_OPEN   3
 
#define MODM_CLOSE   4
 
#define MODM_PREPARE   5
 
#define MODM_UNPREPARE   6
 
#define MODM_DATA   7
 
#define MODM_LONGDATA   8
 
#define MODM_RESET   9
 
#define MODM_GETVOLUME   10
 
#define MODM_SETVOLUME   11
 
#define MODM_CACHEPATCHES   12
 
#define MODM_CACHEDRUMPATCHES   13
 
#define MIDM_INIT   DRVM_INIT
 
#define MIDM_GETNUMDEVS   53
 
#define MIDM_GETDEVCAPS   54
 
#define MIDM_OPEN   55
 
#define MIDM_CLOSE   56
 
#define MIDM_PREPARE   57
 
#define MIDM_UNPREPARE   58
 
#define MIDM_ADDBUFFER   59
 
#define MIDM_START   60
 
#define MIDM_STOP   61
 
#define MIDM_RESET   62
 
#define AUXM_INIT   DRVM_INIT
 
#define AUXDM_GETNUMDEVS   3
 
#define AUXDM_GETDEVCAPS   4
 
#define AUXDM_GETVOLUME   5
 
#define AUXDM_SETVOLUME   6
 
#define MXDM_INIT   DRVM_INIT
 
#define MXDM_USER   DRVM_USER
 
#define MXDM_MAPPER   DRVM_MAPPER
 
#define MXDM_GETNUMDEVS   1
 
#define MXDM_GETDEVCAPS   2
 
#define MXDM_OPEN   3
 
#define MXDM_CLOSE   4
 
#define MXDM_GETLINEINFO   5
 
#define MXDM_GETLINECONTROLS   6
 
#define MXDM_GETCONTROLDETAILS   7
 
#define MXDM_SETCONTROLDETAILS   8
 
#define JOY_HW_NONE   0
 
#define JOY_HW_CUSTOM   1
 
#define JOY_HW_2A_2B_GENERIC   2
 
#define JOY_HW_2A_4B_GENERIC   3
 
#define JOY_HW_2B_GAMEPAD   4
 
#define JOY_HW_2B_FLIGHTYOKE   5
 
#define JOY_HW_2B_FLIGHTYOKETHROTTLE   6
 
#define JOY_HW_3A_2B_GENERIC   7
 
#define JOY_HW_3A_4B_GENERIC   8
 
#define JOY_HW_4B_GAMEPAD   9
 
#define JOY_HW_4B_FLIGHTYOKE   10
 
#define JOY_HW_4B_FLIGHTYOKETHROTTLE   11
 
#define JOY_HW_LASTENTRY   12
 
#define JOY_ISCAL_XY   0x00000001l /* XY are calibrated */
 
#define JOY_ISCAL_Z   0x00000002l /* Z is calibrated */
 
#define JOY_ISCAL_R   0x00000004l /* R is calibrated */
 
#define JOY_ISCAL_U   0x00000008l /* U is calibrated */
 
#define JOY_ISCAL_V   0x00000010l /* V is calibrated */
 
#define JOY_ISCAL_POV   0x00000020l /* POV is calibrated */
 
#define JOY_POV_NUMDIRS   4
 
#define JOY_POVVAL_FORWARD   0
 
#define JOY_POVVAL_BACKWARD   1
 
#define JOY_POVVAL_LEFT   2
 
#define JOY_POVVAL_RIGHT   3
 
#define JOY_HWS_HASZ   0x00000001l /* has Z info? */
 
#define JOY_HWS_HASPOV   0x00000002l /* point of view hat present */
 
#define JOY_HWS_POVISBUTTONCOMBOS   0x00000004l /* pov done through combo of buttons */
 
#define JOY_HWS_POVISPOLL   0x00000008l /* pov done through polling */
 
#define JOY_HWS_ISYOKE   0x00000010l /* joystick is a flight yoke */
 
#define JOY_HWS_ISGAMEPAD   0x00000020l /* joystick is a game pad */
 
#define JOY_HWS_ISCARCTRL   0x00000040l /* joystick is a car controller */
 
#define JOY_HWS_XISJ1Y   0x00000080l /* X is on J1 Y axis */
 
#define JOY_HWS_XISJ2X   0x00000100l /* X is on J2 X axis */
 
#define JOY_HWS_XISJ2Y   0x00000200l /* X is on J2 Y axis */
 
#define JOY_HWS_YISJ1X   0x00000400l /* Y is on J1 X axis */
 
#define JOY_HWS_YISJ2X   0x00000800l /* Y is on J2 X axis */
 
#define JOY_HWS_YISJ2Y   0x00001000l /* Y is on J2 Y axis */
 
#define JOY_HWS_ZISJ1X   0x00002000l /* Z is on J1 X axis */
 
#define JOY_HWS_ZISJ1Y   0x00004000l /* Z is on J1 Y axis */
 
#define JOY_HWS_ZISJ2X   0x00008000l /* Z is on J2 X axis */
 
#define JOY_HWS_POVISJ1X   0x00010000l /* pov done through J1 X axis */
 
#define JOY_HWS_POVISJ1Y   0x00020000l /* pov done through J1 Y axis */
 
#define JOY_HWS_POVISJ2X   0x00040000l /* pov done through J2 X axis */
 
#define JOY_HWS_HASR   0x00080000l /* has R (4th axis) info */
 
#define JOY_HWS_RISJ1X   0x00100000l /* R done through J1 X axis */
 
#define JOY_HWS_RISJ1Y   0x00200000l /* R done through J1 Y axis */
 
#define JOY_HWS_RISJ2Y   0x00400000l /* R done through J2 X axis */
 
#define JOY_HWS_HASU   0x00800000l /* has U (5th axis) info */
 
#define JOY_HWS_HASV   0x01000000l /* has V (6th axis) info */
 
#define JOY_US_HASRUDDER   0x00000001l /* joystick configured with rudder */
 
#define JOY_US_PRESENT   0x00000002l /* is joystick actually present? */
 
#define JOY_US_ISOEM   0x00000004l /* joystick is an OEM defined type */
 
#define JDD_GETNUMDEVS   (DRV_RESERVED + 0x0001)
 
#define JDD_GETDEVCAPS   (DRV_RESERVED + 0x0002)
 
#define JDD_GETPOS   (DRV_RESERVED + 0x0101)
 
#define JDD_SETCALIBRATION   (DRV_RESERVED + 0x0102)
 
#define JDD_CONFIGCHANGED   (DRV_RESERVED + 0x0103)
 
#define JDD_GETPOSEX   (DRV_RESERVED + 0x0104)
 
#define MCI_MAX_DEVICE_TYPE_LENGTH   80
 
#define MCI_OPEN_DRIVER   0x0801
 
#define MCI_CLOSE_DRIVER   0x0802
 
#define MCI_FALSE   (MCI_STRING_OFFSET + 19)
 
#define MCI_TRUE   (MCI_STRING_OFFSET + 20)
 
#define MCI_FORMAT_RETURN_BASE   MCI_FORMAT_MILLISECONDS_S
 
#define MCI_FORMAT_MILLISECONDS_S   (MCI_STRING_OFFSET + 21)
 
#define MCI_FORMAT_HMS_S   (MCI_STRING_OFFSET + 22)
 
#define MCI_FORMAT_MSF_S   (MCI_STRING_OFFSET + 23)
 
#define MCI_FORMAT_FRAMES_S   (MCI_STRING_OFFSET + 24)
 
#define MCI_FORMAT_SMPTE_24_S   (MCI_STRING_OFFSET + 25)
 
#define MCI_FORMAT_SMPTE_25_S   (MCI_STRING_OFFSET + 26)
 
#define MCI_FORMAT_SMPTE_30_S   (MCI_STRING_OFFSET + 27)
 
#define MCI_FORMAT_SMPTE_30DROP_S   (MCI_STRING_OFFSET + 28)
 
#define MCI_FORMAT_BYTES_S   (MCI_STRING_OFFSET + 29)
 
#define MCI_FORMAT_SAMPLES_S   (MCI_STRING_OFFSET + 30)
 
#define MCI_FORMAT_TMSF_S   (MCI_STRING_OFFSET + 31)
 
#define MCI_VD_FORMAT_TRACK_S   (MCI_VD_OFFSET + 5)
 
#define WAVE_FORMAT_PCM_S   (MCI_WAVE_OFFSET + 0)
 
#define WAVE_MAPPER_S   (MCI_WAVE_OFFSET + 1)
 
#define MCI_SEQ_MAPPER_S   (MCI_SEQ_OFFSET + 5)
 
#define MCI_SEQ_FILE_S   (MCI_SEQ_OFFSET + 6)
 
#define MCI_SEQ_MIDI_S   (MCI_SEQ_OFFSET + 7)
 
#define MCI_SEQ_SMPTE_S   (MCI_SEQ_OFFSET + 8)
 
#define MCI_SEQ_FORMAT_SONGPTR_S   (MCI_SEQ_OFFSET + 9)
 
#define MCI_SEQ_NONE_S   (MCI_SEQ_OFFSET + 10)
 
#define MIDIMAPPER_S   (MCI_SEQ_OFFSET + 11)
 
#define MCI_RESOURCE_RETURNED   0x00010000 /* resource ID */
 
#define MCI_COLONIZED3_RETURN   0x00020000 /* colonized ID, 3 bytes data */
 
#define MCI_COLONIZED4_RETURN   0x00040000 /* colonized ID, 4 bytes data */
 
#define MCI_INTEGER_RETURNED   0x00080000 /* integer conversion needed */
 
#define MCI_RESOURCE_DRIVER   0x00100000 /* driver owns returned resource */
 
#define MCI_NO_COMMAND_TABLE   0xFFFF
 
#define MCI_COMMAND_HEAD   0
 
#define MCI_STRING   1
 
#define MCI_INTEGER   2
 
#define MCI_END_COMMAND   3
 
#define MCI_RETURN   4
 
#define MCI_FLAG   5
 
#define MCI_END_COMMAND_LIST   6
 
#define MCI_RECT   7
 
#define MCI_CONSTANT   8
 
#define MCI_END_CONSTANT   9
 
#define MCI_HWND   10
 
#define MCI_HPAL   11
 
#define MCI_HDC   12
 
#define MAKEMCIRESOURCE(wRet, wRes)   MAKELRESULT((wRet), (wRes))
 
#define DCB_NULL   0x0000
 
#define DCB_WINDOW   0x0001 /* dwCallback is a HWND */
 
#define DCB_TASK   0x0002 /* dwCallback is a HTASK */
 
#define DCB_FUNCTION   0x0003 /* dwCallback is a FARPROC */
 
#define DCB_EVENT   0x0005 /* dwCallback is an EVENT Handler */
 
#define DCB_TYPEMASK   0x0007
 
#define DCB_NOSWITCH   0x0008 /* don't switch stacks for callback */
 
#define TASKERR_NOTASKSUPPORT   1
 
#define TASKERR_OUTOFMEMORY   2
 
#define WAVE_DIRECTSOUND   0x0080
 

Typedefs

typedef struct DRVM_IOCTL_DATALPDRVM_IOCTL_DATA
 
typedef struct joypos_tag JOYPOS
 
typedef struct joypos_tagLPJOYPOS
 
typedef struct joyrange_tag JOYRANGE
 
typedef struct joyrange_tagLPJOYRANGE
 
typedef struct joyreguservalues_tag JOYREGUSERVALUES
 
typedef struct joyreguservalues_tagLPJOYREGUSERVALUES
 
typedef struct joyreghwsettings_tag JOYREGHWSETTINGS
 
typedef struct joyreghwsettings_tagLPJOYHWSETTINGS
 
typedef struct joyreghwvalues_tag JOYREGHWVALUES
 
typedef struct joyreghwvalues_tagLPJOYREGHWVALUES
 
typedef struct joyreghwconfig_tag JOYREGHWCONFIG
 
typedef struct joyreghwconfig_tagLPJOYREGHWCONFIG
 
typedef struct joycalibrate_tag JOYCALIBRATE
 
typedef JOYCALIBRATELPJOYCALIBRATE
 
typedef UINT(CALLBACKJOYDEVMSGPROC) (DWORD dwID, UINT uMessage, LPARAM lParam1, LPARAM lParam2)
 
typedef JOYDEVMSGPROCLPJOYDEVMSGPROC
 
typedef struct PORTALLOCLPPORTALLOC
 
typedef struct WAVEOPENDESCLPWAVEOPENDESC
 
typedef struct MIDIOPENDESCLPMIDIOPENDESC
 
typedef struct tMIXEROPENDESC MIXEROPENDESC
 
typedef struct tMIXEROPENDESCLPMIXEROPENDESC
 
typedef struct MCI_OPEN_DRIVER_PARMSALPMCI_OPEN_DRIVER_PARMSA
 
typedef struct MCI_OPEN_DRIVER_PARMSWLPMCI_OPEN_DRIVER_PARMSW
 
typedef void(* LPTASKCALLBACK) (DWORD dwInst)
 

Functions

DWORD_PTR WINAPI mciGetDriverData (UINT uDeviceID)
 
BOOL WINAPI mciSetDriverData (UINT uDeviceID, DWORD_PTR dwData)
 
UINT WINAPI mciDriverYield (UINT uDeviceID)
 
BOOL WINAPI mciDriverNotify (HWND hwndCallback, UINT uDeviceID, UINT uStatus)
 
UINT WINAPI mciLoadCommandResource (HINSTANCE hInstance, LPCWSTR lpResName, UINT uType)
 
BOOL WINAPI mciFreeCommandResource (UINT uTable)
 
BOOL APIENTRY DriverCallback (DWORD_PTR dwCallBack, DWORD uFlags, HDRVR hDev, DWORD wMsg, DWORD_PTR dwUser, DWORD_PTR dwParam1, DWORD_PTR dwParam2)
 
UINT WINAPI mmTaskCreate (LPTASKCALLBACK, HANDLE *, DWORD_PTR)
 
void WINAPI mmTaskBlock (DWORD)
 
BOOL WINAPI mmTaskSignal (DWORD)
 
void WINAPI mmTaskYield (void)
 
DWORD WINAPI mmGetCurrentTask (void)
 

Macro Definition Documentation

◆ AUXDM_GETDEVCAPS

#define AUXDM_GETDEVCAPS   4

Definition at line 181 of file mmddk.h.

◆ AUXDM_GETNUMDEVS

#define AUXDM_GETNUMDEVS   3

Definition at line 180 of file mmddk.h.

◆ AUXDM_GETVOLUME

#define AUXDM_GETVOLUME   5

Definition at line 182 of file mmddk.h.

◆ AUXDM_SETVOLUME

#define AUXDM_SETVOLUME   6

Definition at line 183 of file mmddk.h.

◆ AUXM_INIT

#define AUXM_INIT   DRVM_INIT

Definition at line 179 of file mmddk.h.

◆ DCB_EVENT

#define DCB_EVENT   0x0005 /* dwCallback is an EVENT Handler */

Definition at line 464 of file mmddk.h.

◆ DCB_FUNCTION

#define DCB_FUNCTION   0x0003 /* dwCallback is a FARPROC */

Definition at line 463 of file mmddk.h.

◆ DCB_NOSWITCH

#define DCB_NOSWITCH   0x0008 /* don't switch stacks for callback */

Definition at line 466 of file mmddk.h.

◆ DCB_NULL

#define DCB_NULL   0x0000

Definition at line 460 of file mmddk.h.

◆ DCB_TASK

#define DCB_TASK   0x0002 /* dwCallback is a HTASK */

Definition at line 462 of file mmddk.h.

◆ DCB_TYPEMASK

#define DCB_TYPEMASK   0x0007

Definition at line 465 of file mmddk.h.

◆ DCB_WINDOW

#define DCB_WINDOW   0x0001 /* dwCallback is a HWND */

Definition at line 461 of file mmddk.h.

◆ DRV_PNPINSTALL

#define DRV_PNPINSTALL   (DRV_RESERVED + 11)

Definition at line 92 of file mmddk.h.

◆ DRV_QUERYDEVICEINTERFACE

#define DRV_QUERYDEVICEINTERFACE   (DRV_RESERVED + 12)

Definition at line 93 of file mmddk.h.

◆ DRV_QUERYDEVICEINTERFACESIZE

#define DRV_QUERYDEVICEINTERFACESIZE   (DRV_RESERVED + 13)

Definition at line 94 of file mmddk.h.

◆ DRV_QUERYDEVNODE

#define DRV_QUERYDEVNODE   (DRV_RESERVED + 2)

Definition at line 87 of file mmddk.h.

◆ DRV_QUERYDRIVERIDS

#define DRV_QUERYDRIVERIDS   (DRV_RESERVED + 4)

Definition at line 89 of file mmddk.h.

◆ DRV_QUERYDRVENTRY

#define DRV_QUERYDRVENTRY   (DRV_RESERVED + 1)

Definition at line 86 of file mmddk.h.

◆ DRV_QUERYFUNCTIONINSTANCEID

#define DRV_QUERYFUNCTIONINSTANCEID   (DRV_RESERVED + 17)

Definition at line 98 of file mmddk.h.

◆ DRV_QUERYIDFROMSTRINGID

#define DRV_QUERYIDFROMSTRINGID   (DRV_RESERVED + 16)

Definition at line 97 of file mmddk.h.

◆ DRV_QUERYMAPPABLE

#define DRV_QUERYMAPPABLE   (DRV_RESERVED + 5)

Definition at line 90 of file mmddk.h.

◆ DRV_QUERYMODULE

#define DRV_QUERYMODULE   (DRV_RESERVED + 9)

Definition at line 91 of file mmddk.h.

◆ DRV_QUERYNAME

#define DRV_QUERYNAME   (DRV_RESERVED + 3)

Definition at line 88 of file mmddk.h.

◆ DRV_QUERYSTRINGID

#define DRV_QUERYSTRINGID   (DRV_RESERVED + 14)

Definition at line 95 of file mmddk.h.

◆ DRV_QUERYSTRINGIDSIZE

#define DRV_QUERYSTRINGIDSIZE   (DRV_RESERVED + 15)

Definition at line 96 of file mmddk.h.

◆ DRVM_ADD_THRU

#define DRVM_ADD_THRU   (DRVM_IOCTL+1)

Definition at line 64 of file mmddk.h.

◆ DRVM_DISABLE

#define DRVM_DISABLE   102

Definition at line 55 of file mmddk.h.

◆ DRVM_ENABLE

#define DRVM_ENABLE   103

Definition at line 56 of file mmddk.h.

◆ DRVM_EXIT

#define DRVM_EXIT   101

Definition at line 54 of file mmddk.h.

◆ DRVM_INIT

#define DRVM_INIT   100

Definition at line 53 of file mmddk.h.

◆ DRVM_IOCTL

#define DRVM_IOCTL   0x100

Definition at line 63 of file mmddk.h.

◆ DRVM_IOCTL_CMD_SYSTEM

#define DRVM_IOCTL_CMD_SYSTEM   0x80000000L

Definition at line 77 of file mmddk.h.

◆ DRVM_IOCTL_CMD_USER

#define DRVM_IOCTL_CMD_USER   0x00000000L

Definition at line 76 of file mmddk.h.

◆ DRVM_IOCTL_LAST

#define DRVM_IOCTL_LAST   (DRVM_IOCTL+5)

Definition at line 66 of file mmddk.h.

◆ DRVM_MAPPER

#define DRVM_MAPPER   0x2000

Definition at line 79 of file mmddk.h.

◆ DRVM_MAPPER_CONSOLEVOICECOM_GET

#define DRVM_MAPPER_CONSOLEVOICECOM_GET   (DRVM_MAPPER+23)

Definition at line 84 of file mmddk.h.

◆ DRVM_MAPPER_PREFERRED_GET

#define DRVM_MAPPER_PREFERRED_GET   (DRVM_MAPPER+21)

Definition at line 83 of file mmddk.h.

◆ DRVM_MAPPER_RECONFIGURE

#define DRVM_MAPPER_RECONFIGURE   (DRVM_MAPPER+1)

Definition at line 82 of file mmddk.h.

◆ DRVM_MAPPER_STATUS

#define DRVM_MAPPER_STATUS   (DRVM_MAPPER+0)

Definition at line 81 of file mmddk.h.

◆ DRVM_REMOVE_THRU

#define DRVM_REMOVE_THRU   (DRVM_IOCTL+2)

Definition at line 65 of file mmddk.h.

◆ DRVM_USER

#define DRVM_USER   0x4000

Definition at line 80 of file mmddk.h.

◆ JDD_CONFIGCHANGED

#define JDD_CONFIGCHANGED   (DRV_RESERVED + 0x0103)

Definition at line 333 of file mmddk.h.

◆ JDD_GETDEVCAPS

#define JDD_GETDEVCAPS   (DRV_RESERVED + 0x0002)

Definition at line 330 of file mmddk.h.

◆ JDD_GETNUMDEVS

#define JDD_GETNUMDEVS   (DRV_RESERVED + 0x0001)

Definition at line 329 of file mmddk.h.

◆ JDD_GETPOS

#define JDD_GETPOS   (DRV_RESERVED + 0x0101)

Definition at line 331 of file mmddk.h.

◆ JDD_GETPOSEX

#define JDD_GETPOSEX   (DRV_RESERVED + 0x0104)

Definition at line 334 of file mmddk.h.

◆ JDD_SETCALIBRATION

#define JDD_SETCALIBRATION   (DRV_RESERVED + 0x0102)

Definition at line 332 of file mmddk.h.

◆ JOY_HW_2A_2B_GENERIC

#define JOY_HW_2A_2B_GENERIC   2

Definition at line 201 of file mmddk.h.

◆ JOY_HW_2A_4B_GENERIC

#define JOY_HW_2A_4B_GENERIC   3

Definition at line 202 of file mmddk.h.

◆ JOY_HW_2B_FLIGHTYOKE

#define JOY_HW_2B_FLIGHTYOKE   5

Definition at line 204 of file mmddk.h.

◆ JOY_HW_2B_FLIGHTYOKETHROTTLE

#define JOY_HW_2B_FLIGHTYOKETHROTTLE   6

Definition at line 205 of file mmddk.h.

◆ JOY_HW_2B_GAMEPAD

#define JOY_HW_2B_GAMEPAD   4

Definition at line 203 of file mmddk.h.

◆ JOY_HW_3A_2B_GENERIC

#define JOY_HW_3A_2B_GENERIC   7

Definition at line 206 of file mmddk.h.

◆ JOY_HW_3A_4B_GENERIC

#define JOY_HW_3A_4B_GENERIC   8

Definition at line 207 of file mmddk.h.

◆ JOY_HW_4B_FLIGHTYOKE

#define JOY_HW_4B_FLIGHTYOKE   10

Definition at line 209 of file mmddk.h.

◆ JOY_HW_4B_FLIGHTYOKETHROTTLE

#define JOY_HW_4B_FLIGHTYOKETHROTTLE   11

Definition at line 210 of file mmddk.h.

◆ JOY_HW_4B_GAMEPAD

#define JOY_HW_4B_GAMEPAD   9

Definition at line 208 of file mmddk.h.

◆ JOY_HW_CUSTOM

#define JOY_HW_CUSTOM   1

Definition at line 200 of file mmddk.h.

◆ JOY_HW_LASTENTRY

#define JOY_HW_LASTENTRY   12

Definition at line 211 of file mmddk.h.

◆ JOY_HW_NONE

#define JOY_HW_NONE   0

Definition at line 199 of file mmddk.h.

◆ JOY_HWS_HASPOV

#define JOY_HWS_HASPOV   0x00000002l /* point of view hat present */

Definition at line 230 of file mmddk.h.

◆ JOY_HWS_HASR

#define JOY_HWS_HASR   0x00080000l /* has R (4th axis) info */

Definition at line 253 of file mmddk.h.

◆ JOY_HWS_HASU

#define JOY_HWS_HASU   0x00800000l /* has U (5th axis) info */

Definition at line 258 of file mmddk.h.

◆ JOY_HWS_HASV

#define JOY_HWS_HASV   0x01000000l /* has V (6th axis) info */

Definition at line 259 of file mmddk.h.

◆ JOY_HWS_HASZ

#define JOY_HWS_HASZ   0x00000001l /* has Z info? */

Definition at line 229 of file mmddk.h.

◆ JOY_HWS_ISCARCTRL

#define JOY_HWS_ISCARCTRL   0x00000040l /* joystick is a car controller */

Definition at line 235 of file mmddk.h.

◆ JOY_HWS_ISGAMEPAD

#define JOY_HWS_ISGAMEPAD   0x00000020l /* joystick is a game pad */

Definition at line 234 of file mmddk.h.

◆ JOY_HWS_ISYOKE

#define JOY_HWS_ISYOKE   0x00000010l /* joystick is a flight yoke */

Definition at line 233 of file mmddk.h.

◆ JOY_HWS_POVISBUTTONCOMBOS

#define JOY_HWS_POVISBUTTONCOMBOS   0x00000004l /* pov done through combo of buttons */

Definition at line 231 of file mmddk.h.

◆ JOY_HWS_POVISJ1X

#define JOY_HWS_POVISJ1X   0x00010000l /* pov done through J1 X axis */

Definition at line 249 of file mmddk.h.

◆ JOY_HWS_POVISJ1Y

#define JOY_HWS_POVISJ1Y   0x00020000l /* pov done through J1 Y axis */

Definition at line 250 of file mmddk.h.

◆ JOY_HWS_POVISJ2X

#define JOY_HWS_POVISJ2X   0x00040000l /* pov done through J2 X axis */

Definition at line 251 of file mmddk.h.

◆ JOY_HWS_POVISPOLL

#define JOY_HWS_POVISPOLL   0x00000008l /* pov done through polling */

Definition at line 232 of file mmddk.h.

◆ JOY_HWS_RISJ1X

#define JOY_HWS_RISJ1X   0x00100000l /* R done through J1 X axis */

Definition at line 254 of file mmddk.h.

◆ JOY_HWS_RISJ1Y

#define JOY_HWS_RISJ1Y   0x00200000l /* R done through J1 Y axis */

Definition at line 255 of file mmddk.h.

◆ JOY_HWS_RISJ2Y

#define JOY_HWS_RISJ2Y   0x00400000l /* R done through J2 X axis */

Definition at line 256 of file mmddk.h.

◆ JOY_HWS_XISJ1Y

#define JOY_HWS_XISJ1Y   0x00000080l /* X is on J1 Y axis */

Definition at line 237 of file mmddk.h.

◆ JOY_HWS_XISJ2X

#define JOY_HWS_XISJ2X   0x00000100l /* X is on J2 X axis */

Definition at line 238 of file mmddk.h.

◆ JOY_HWS_XISJ2Y

#define JOY_HWS_XISJ2Y   0x00000200l /* X is on J2 Y axis */

Definition at line 239 of file mmddk.h.

◆ JOY_HWS_YISJ1X

#define JOY_HWS_YISJ1X   0x00000400l /* Y is on J1 X axis */

Definition at line 241 of file mmddk.h.

◆ JOY_HWS_YISJ2X

#define JOY_HWS_YISJ2X   0x00000800l /* Y is on J2 X axis */

Definition at line 242 of file mmddk.h.

◆ JOY_HWS_YISJ2Y

#define JOY_HWS_YISJ2Y   0x00001000l /* Y is on J2 Y axis */

Definition at line 243 of file mmddk.h.

◆ JOY_HWS_ZISJ1X

#define JOY_HWS_ZISJ1X   0x00002000l /* Z is on J1 X axis */

Definition at line 245 of file mmddk.h.

◆ JOY_HWS_ZISJ1Y

#define JOY_HWS_ZISJ1Y   0x00004000l /* Z is on J1 Y axis */

Definition at line 246 of file mmddk.h.

◆ JOY_HWS_ZISJ2X

#define JOY_HWS_ZISJ2X   0x00008000l /* Z is on J2 X axis */

Definition at line 247 of file mmddk.h.

◆ JOY_ISCAL_POV

#define JOY_ISCAL_POV   0x00000020l /* POV is calibrated */

Definition at line 219 of file mmddk.h.

◆ JOY_ISCAL_R

#define JOY_ISCAL_R   0x00000004l /* R is calibrated */

Definition at line 216 of file mmddk.h.

◆ JOY_ISCAL_U

#define JOY_ISCAL_U   0x00000008l /* U is calibrated */

Definition at line 217 of file mmddk.h.

◆ JOY_ISCAL_V

#define JOY_ISCAL_V   0x00000010l /* V is calibrated */

Definition at line 218 of file mmddk.h.

◆ JOY_ISCAL_XY

#define JOY_ISCAL_XY   0x00000001l /* XY are calibrated */

Definition at line 214 of file mmddk.h.

◆ JOY_ISCAL_Z

#define JOY_ISCAL_Z   0x00000002l /* Z is calibrated */

Definition at line 215 of file mmddk.h.

◆ JOY_POV_NUMDIRS

#define JOY_POV_NUMDIRS   4

Definition at line 222 of file mmddk.h.

◆ JOY_POVVAL_BACKWARD

#define JOY_POVVAL_BACKWARD   1

Definition at line 224 of file mmddk.h.

◆ JOY_POVVAL_FORWARD

#define JOY_POVVAL_FORWARD   0

Definition at line 223 of file mmddk.h.

◆ JOY_POVVAL_LEFT

#define JOY_POVVAL_LEFT   2

Definition at line 225 of file mmddk.h.

◆ JOY_POVVAL_RIGHT

#define JOY_POVVAL_RIGHT   3

Definition at line 226 of file mmddk.h.

◆ JOY_US_HASRUDDER

#define JOY_US_HASRUDDER   0x00000001l /* joystick configured with rudder */

Definition at line 262 of file mmddk.h.

◆ JOY_US_ISOEM

#define JOY_US_ISOEM   0x00000004l /* joystick is an OEM defined type */

Definition at line 264 of file mmddk.h.

◆ JOY_US_PRESENT

#define JOY_US_PRESENT   0x00000002l /* is joystick actually present? */

Definition at line 263 of file mmddk.h.

◆ MAKEMCIRESOURCE

#define MAKEMCIRESOURCE (   wRet,
  wRes 
)    MAKELRESULT((wRet), (wRes))

Definition at line 396 of file mmddk.h.

◆ MAX_MIDIINDRV

#define MAX_MIDIINDRV   (16)

Definition at line 39 of file mmddk.h.

◆ MAX_MIDIOUTDRV

#define MAX_MIDIOUTDRV   (16)

Definition at line 45 of file mmddk.h.

◆ MAXWAVEDRIVERS

#define MAXWAVEDRIVERS   10

Definition at line 37 of file mmddk.h.

◆ MCI_CLOSE_DRIVER

#define MCI_CLOSE_DRIVER   0x0802

Definition at line 339 of file mmddk.h.

◆ MCI_COLONIZED3_RETURN

#define MCI_COLONIZED3_RETURN   0x00020000 /* colonized ID, 3 bytes data */

Definition at line 371 of file mmddk.h.

◆ MCI_COLONIZED4_RETURN

#define MCI_COLONIZED4_RETURN   0x00040000 /* colonized ID, 4 bytes data */

Definition at line 372 of file mmddk.h.

◆ MCI_COMMAND_HEAD

#define MCI_COMMAND_HEAD   0

Definition at line 378 of file mmddk.h.

◆ MCI_CONSTANT

#define MCI_CONSTANT   8

Definition at line 386 of file mmddk.h.

◆ MCI_END_COMMAND

#define MCI_END_COMMAND   3

Definition at line 381 of file mmddk.h.

◆ MCI_END_COMMAND_LIST

#define MCI_END_COMMAND_LIST   6

Definition at line 384 of file mmddk.h.

◆ MCI_END_CONSTANT

#define MCI_END_CONSTANT   9

Definition at line 387 of file mmddk.h.

◆ MCI_FALSE

#define MCI_FALSE   (MCI_STRING_OFFSET + 19)

Definition at line 341 of file mmddk.h.

◆ MCI_FLAG

#define MCI_FLAG   5

Definition at line 383 of file mmddk.h.

◆ MCI_FORMAT_BYTES_S

#define MCI_FORMAT_BYTES_S   (MCI_STRING_OFFSET + 29)

Definition at line 353 of file mmddk.h.

◆ MCI_FORMAT_FRAMES_S

#define MCI_FORMAT_FRAMES_S   (MCI_STRING_OFFSET + 24)

Definition at line 348 of file mmddk.h.

◆ MCI_FORMAT_HMS_S

#define MCI_FORMAT_HMS_S   (MCI_STRING_OFFSET + 22)

Definition at line 346 of file mmddk.h.

◆ MCI_FORMAT_MILLISECONDS_S

#define MCI_FORMAT_MILLISECONDS_S   (MCI_STRING_OFFSET + 21)

Definition at line 345 of file mmddk.h.

◆ MCI_FORMAT_MSF_S

#define MCI_FORMAT_MSF_S   (MCI_STRING_OFFSET + 23)

Definition at line 347 of file mmddk.h.

◆ MCI_FORMAT_RETURN_BASE

#define MCI_FORMAT_RETURN_BASE   MCI_FORMAT_MILLISECONDS_S

Definition at line 344 of file mmddk.h.

◆ MCI_FORMAT_SAMPLES_S

#define MCI_FORMAT_SAMPLES_S   (MCI_STRING_OFFSET + 30)

Definition at line 354 of file mmddk.h.

◆ MCI_FORMAT_SMPTE_24_S

#define MCI_FORMAT_SMPTE_24_S   (MCI_STRING_OFFSET + 25)

Definition at line 349 of file mmddk.h.

◆ MCI_FORMAT_SMPTE_25_S

#define MCI_FORMAT_SMPTE_25_S   (MCI_STRING_OFFSET + 26)

Definition at line 350 of file mmddk.h.

◆ MCI_FORMAT_SMPTE_30_S

#define MCI_FORMAT_SMPTE_30_S   (MCI_STRING_OFFSET + 27)

Definition at line 351 of file mmddk.h.

◆ MCI_FORMAT_SMPTE_30DROP_S

#define MCI_FORMAT_SMPTE_30DROP_S   (MCI_STRING_OFFSET + 28)

Definition at line 352 of file mmddk.h.

◆ MCI_FORMAT_TMSF_S

#define MCI_FORMAT_TMSF_S   (MCI_STRING_OFFSET + 31)

Definition at line 355 of file mmddk.h.

◆ MCI_HDC

#define MCI_HDC   12

Definition at line 390 of file mmddk.h.

◆ MCI_HPAL

#define MCI_HPAL   11

Definition at line 389 of file mmddk.h.

◆ MCI_HWND

#define MCI_HWND   10

Definition at line 388 of file mmddk.h.

◆ MCI_INTEGER

#define MCI_INTEGER   2

Definition at line 380 of file mmddk.h.

◆ MCI_INTEGER_RETURNED

#define MCI_INTEGER_RETURNED   0x00080000 /* integer conversion needed */

Definition at line 373 of file mmddk.h.

◆ MCI_MAX_DEVICE_TYPE_LENGTH

#define MCI_MAX_DEVICE_TYPE_LENGTH   80

Definition at line 336 of file mmddk.h.

◆ MCI_NO_COMMAND_TABLE

#define MCI_NO_COMMAND_TABLE   0xFFFF

Definition at line 376 of file mmddk.h.

◆ MCI_OPEN_DRIVER

#define MCI_OPEN_DRIVER   0x0801

Definition at line 338 of file mmddk.h.

◆ MCI_RECT

#define MCI_RECT   7

Definition at line 385 of file mmddk.h.

◆ MCI_RESOURCE_DRIVER

#define MCI_RESOURCE_DRIVER   0x00100000 /* driver owns returned resource */

Definition at line 374 of file mmddk.h.

◆ MCI_RESOURCE_RETURNED

#define MCI_RESOURCE_RETURNED   0x00010000 /* resource ID */

Definition at line 370 of file mmddk.h.

◆ MCI_RETURN

#define MCI_RETURN   4

Definition at line 382 of file mmddk.h.

◆ MCI_SEQ_FILE_S

#define MCI_SEQ_FILE_S   (MCI_SEQ_OFFSET + 6)

Definition at line 363 of file mmddk.h.

◆ MCI_SEQ_FORMAT_SONGPTR_S

#define MCI_SEQ_FORMAT_SONGPTR_S   (MCI_SEQ_OFFSET + 9)

Definition at line 366 of file mmddk.h.

◆ MCI_SEQ_MAPPER_S

#define MCI_SEQ_MAPPER_S   (MCI_SEQ_OFFSET + 5)

Definition at line 362 of file mmddk.h.

◆ MCI_SEQ_MIDI_S

#define MCI_SEQ_MIDI_S   (MCI_SEQ_OFFSET + 7)

Definition at line 364 of file mmddk.h.

◆ MCI_SEQ_NONE_S

#define MCI_SEQ_NONE_S   (MCI_SEQ_OFFSET + 10)

Definition at line 367 of file mmddk.h.

◆ MCI_SEQ_SMPTE_S

#define MCI_SEQ_SMPTE_S   (MCI_SEQ_OFFSET + 8)

Definition at line 365 of file mmddk.h.

◆ MCI_STRING

#define MCI_STRING   1

Definition at line 379 of file mmddk.h.

◆ MCI_TRUE

#define MCI_TRUE   (MCI_STRING_OFFSET + 20)

Definition at line 342 of file mmddk.h.

◆ MCI_VD_FORMAT_TRACK_S

#define MCI_VD_FORMAT_TRACK_S   (MCI_VD_OFFSET + 5)

Definition at line 357 of file mmddk.h.

◆ MIDIMAPPER_S

#define MIDIMAPPER_S   (MCI_SEQ_OFFSET + 11)

Definition at line 368 of file mmddk.h.

◆ MIDM_ADDBUFFER

#define MIDM_ADDBUFFER   59

Definition at line 173 of file mmddk.h.

◆ MIDM_CLOSE

#define MIDM_CLOSE   56

Definition at line 170 of file mmddk.h.

◆ MIDM_GETDEVCAPS

#define MIDM_GETDEVCAPS   54

Definition at line 168 of file mmddk.h.

◆ MIDM_GETNUMDEVS

#define MIDM_GETNUMDEVS   53

Definition at line 167 of file mmddk.h.

◆ MIDM_INIT

#define MIDM_INIT   DRVM_INIT

Definition at line 166 of file mmddk.h.

◆ MIDM_OPEN

#define MIDM_OPEN   55

Definition at line 169 of file mmddk.h.

◆ MIDM_PREPARE

#define MIDM_PREPARE   57

Definition at line 171 of file mmddk.h.

◆ MIDM_RESET

#define MIDM_RESET   62

Definition at line 176 of file mmddk.h.

◆ MIDM_START

#define MIDM_START   60

Definition at line 174 of file mmddk.h.

◆ MIDM_STOP

#define MIDM_STOP   61

Definition at line 175 of file mmddk.h.

◆ MIDM_UNPREPARE

#define MIDM_UNPREPARE   58

Definition at line 172 of file mmddk.h.

◆ MODM_CACHEDRUMPATCHES

#define MODM_CACHEDRUMPATCHES   13

Definition at line 164 of file mmddk.h.

◆ MODM_CACHEPATCHES

#define MODM_CACHEPATCHES   12

Definition at line 163 of file mmddk.h.

◆ MODM_CLOSE

#define MODM_CLOSE   4

Definition at line 155 of file mmddk.h.

◆ MODM_DATA

#define MODM_DATA   7

Definition at line 158 of file mmddk.h.

◆ MODM_GETDEVCAPS

#define MODM_GETDEVCAPS   2

Definition at line 153 of file mmddk.h.

◆ MODM_GETNUMDEVS

#define MODM_GETNUMDEVS   1

Definition at line 152 of file mmddk.h.

◆ MODM_GETVOLUME

#define MODM_GETVOLUME   10

Definition at line 161 of file mmddk.h.

◆ MODM_INIT

#define MODM_INIT   DRVM_INIT

Definition at line 151 of file mmddk.h.

◆ MODM_LONGDATA

#define MODM_LONGDATA   8

Definition at line 159 of file mmddk.h.

◆ MODM_OPEN

#define MODM_OPEN   3

Definition at line 154 of file mmddk.h.

◆ MODM_PREPARE

#define MODM_PREPARE   5

Definition at line 156 of file mmddk.h.

◆ MODM_RESET

#define MODM_RESET   9

Definition at line 160 of file mmddk.h.

◆ MODM_SETVOLUME

#define MODM_SETVOLUME   11

Definition at line 162 of file mmddk.h.

◆ MODM_UNPREPARE

#define MODM_UNPREPARE   6

Definition at line 157 of file mmddk.h.

◆ MXDM_CLOSE

#define MXDM_CLOSE   4

Definition at line 192 of file mmddk.h.

◆ MXDM_GETCONTROLDETAILS

#define MXDM_GETCONTROLDETAILS   7

Definition at line 195 of file mmddk.h.

◆ MXDM_GETDEVCAPS

#define MXDM_GETDEVCAPS   2

Definition at line 190 of file mmddk.h.

◆ MXDM_GETLINECONTROLS

#define MXDM_GETLINECONTROLS   6

Definition at line 194 of file mmddk.h.

◆ MXDM_GETLINEINFO

#define MXDM_GETLINEINFO   5

Definition at line 193 of file mmddk.h.

◆ MXDM_GETNUMDEVS

#define MXDM_GETNUMDEVS   1

Definition at line 189 of file mmddk.h.

◆ MXDM_INIT

#define MXDM_INIT   DRVM_INIT

Definition at line 185 of file mmddk.h.

◆ MXDM_MAPPER

#define MXDM_MAPPER   DRVM_MAPPER

Definition at line 187 of file mmddk.h.

◆ MXDM_OPEN

#define MXDM_OPEN   3

Definition at line 191 of file mmddk.h.

◆ MXDM_SETCONTROLDETAILS

#define MXDM_SETCONTROLDETAILS   8

Definition at line 196 of file mmddk.h.

◆ MXDM_USER

#define MXDM_USER   DRVM_USER

Definition at line 186 of file mmddk.h.

◆ TASKERR_NOTASKSUPPORT

#define TASKERR_NOTASKSUPPORT   1

Definition at line 473 of file mmddk.h.

◆ TASKERR_OUTOFMEMORY

#define TASKERR_OUTOFMEMORY   2

Definition at line 474 of file mmddk.h.

◆ WAVE_DIRECTSOUND

#define WAVE_DIRECTSOUND   0x0080

Definition at line 482 of file mmddk.h.

◆ WAVE_FORMAT_PCM_S

#define WAVE_FORMAT_PCM_S   (MCI_WAVE_OFFSET + 0)

Definition at line 359 of file mmddk.h.

◆ WAVE_MAPPER_S

#define WAVE_MAPPER_S   (MCI_WAVE_OFFSET + 1)

Definition at line 360 of file mmddk.h.

◆ WAVEIN_MAPPER_STATUS_DEVICE

#define WAVEIN_MAPPER_STATUS_DEVICE   0

Definition at line 147 of file mmddk.h.

◆ WAVEIN_MAPPER_STATUS_FORMAT

#define WAVEIN_MAPPER_STATUS_FORMAT   2

Definition at line 149 of file mmddk.h.

◆ WAVEIN_MAPPER_STATUS_MAPPED

#define WAVEIN_MAPPER_STATUS_MAPPED   1

Definition at line 148 of file mmddk.h.

◆ WAVEOUT_MAPPER_STATUS_DEVICE

#define WAVEOUT_MAPPER_STATUS_DEVICE   0

Definition at line 127 of file mmddk.h.

◆ WAVEOUT_MAPPER_STATUS_FORMAT

#define WAVEOUT_MAPPER_STATUS_FORMAT   2

Definition at line 129 of file mmddk.h.

◆ WAVEOUT_MAPPER_STATUS_MAPPED

#define WAVEOUT_MAPPER_STATUS_MAPPED   1

Definition at line 128 of file mmddk.h.

◆ WIDM_ADDBUFFER

#define WIDM_ADDBUFFER   56

Definition at line 140 of file mmddk.h.

◆ WIDM_CLOSE

#define WIDM_CLOSE   53

Definition at line 137 of file mmddk.h.

◆ WIDM_GETDEVCAPS

#define WIDM_GETDEVCAPS   51

Definition at line 135 of file mmddk.h.

◆ WIDM_GETNUMDEVS

#define WIDM_GETNUMDEVS   50

Definition at line 134 of file mmddk.h.

◆ WIDM_GETPOS

#define WIDM_GETPOS   60

Definition at line 144 of file mmddk.h.

◆ WIDM_INIT

#define WIDM_INIT   DRVM_INIT

Definition at line 133 of file mmddk.h.

◆ WIDM_MAPPER_STATUS

#define WIDM_MAPPER_STATUS   (DRVM_MAPPER_STATUS + 0)

Definition at line 146 of file mmddk.h.

◆ WIDM_OPEN

#define WIDM_OPEN   52

Definition at line 136 of file mmddk.h.

◆ WIDM_PREFERRED

#define WIDM_PREFERRED   61

Definition at line 145 of file mmddk.h.

◆ WIDM_PREPARE

#define WIDM_PREPARE   54

Definition at line 138 of file mmddk.h.

◆ WIDM_RESET

#define WIDM_RESET   59

Definition at line 143 of file mmddk.h.

◆ WIDM_START

#define WIDM_START   57

Definition at line 141 of file mmddk.h.

◆ WIDM_STOP

#define WIDM_STOP   58

Definition at line 142 of file mmddk.h.

◆ WIDM_UNPREPARE

#define WIDM_UNPREPARE   55

Definition at line 139 of file mmddk.h.

◆ WODM_BREAKLOOP

#define WODM_BREAKLOOP   20

Definition at line 123 of file mmddk.h.

◆ WODM_BUSY

#define WODM_BUSY   21

Definition at line 131 of file mmddk.h.

◆ WODM_CLOSE

#define WODM_CLOSE   6

Definition at line 109 of file mmddk.h.

◆ WODM_GETDEVCAPS

#define WODM_GETDEVCAPS   4

Definition at line 107 of file mmddk.h.

◆ WODM_GETNUMDEVS

#define WODM_GETNUMDEVS   3

Definition at line 106 of file mmddk.h.

◆ WODM_GETPITCH

#define WODM_GETPITCH   14

Definition at line 117 of file mmddk.h.

◆ WODM_GETPLAYBACKRATE

#define WODM_GETPLAYBACKRATE   18

Definition at line 121 of file mmddk.h.

◆ WODM_GETPOS

#define WODM_GETPOS   13

Definition at line 116 of file mmddk.h.

◆ WODM_GETVOLUME

#define WODM_GETVOLUME   16

Definition at line 119 of file mmddk.h.

◆ WODM_INIT

#define WODM_INIT   DRVM_INIT

Definition at line 105 of file mmddk.h.

◆ WODM_MAPPER_STATUS

#define WODM_MAPPER_STATUS   (DRVM_MAPPER_STATUS + 0)

Definition at line 126 of file mmddk.h.

◆ WODM_OPEN

#define WODM_OPEN   5

Definition at line 108 of file mmddk.h.

◆ WODM_PAUSE

#define WODM_PAUSE   10

Definition at line 113 of file mmddk.h.

◆ WODM_PREFERRED

#define WODM_PREFERRED   21

Definition at line 124 of file mmddk.h.

◆ WODM_PREPARE

#define WODM_PREPARE   7

Definition at line 110 of file mmddk.h.

◆ WODM_RESET

#define WODM_RESET   12

Definition at line 115 of file mmddk.h.

◆ WODM_RESTART

#define WODM_RESTART   11

Definition at line 114 of file mmddk.h.

◆ WODM_SETPITCH

#define WODM_SETPITCH   15

Definition at line 118 of file mmddk.h.

◆ WODM_SETPLAYBACKRATE

#define WODM_SETPLAYBACKRATE   19

Definition at line 122 of file mmddk.h.

◆ WODM_SETVOLUME

#define WODM_SETVOLUME   17

Definition at line 120 of file mmddk.h.

◆ WODM_UNPREPARE

#define WODM_UNPREPARE   8

Definition at line 111 of file mmddk.h.

◆ WODM_WRITE

#define WODM_WRITE   9

Definition at line 112 of file mmddk.h.

Typedef Documentation

◆ JOYCALIBRATE

◆ JOYDEVMSGPROC

typedef UINT(CALLBACK * JOYDEVMSGPROC) (DWORD dwID, UINT uMessage, LPARAM lParam1, LPARAM lParam2)

Definition at line 325 of file mmddk.h.

◆ JOYPOS

◆ JOYRANGE

◆ JOYREGHWCONFIG

◆ JOYREGHWSETTINGS

◆ JOYREGHWVALUES

◆ JOYREGUSERVALUES

◆ LPDRVM_IOCTL_DATA

◆ LPJOYCALIBRATE

Definition at line 322 of file mmddk.h.

◆ LPJOYDEVMSGPROC

Definition at line 326 of file mmddk.h.

◆ LPJOYHWSETTINGS

◆ LPJOYPOS

◆ LPJOYRANGE

◆ LPJOYREGHWCONFIG

◆ LPJOYREGHWVALUES

◆ LPJOYREGUSERVALUES

◆ LPMCI_OPEN_DRIVER_PARMSA

◆ LPMCI_OPEN_DRIVER_PARMSW

◆ LPMIDIOPENDESC

◆ LPMIXEROPENDESC

◆ LPPORTALLOC

◆ LPTASKCALLBACK

typedef void(* LPTASKCALLBACK) (DWORD dwInst)

Definition at line 471 of file mmddk.h.

◆ LPWAVEOPENDESC

◆ MIXEROPENDESC

Function Documentation

◆ DriverCallback()

BOOL APIENTRY DriverCallback ( DWORD_PTR  dwCallBack,
DWORD  uFlags,
HDRVR  hDev,
DWORD  wMsg,
DWORD_PTR  dwUser,
DWORD_PTR  dwParam1,
DWORD_PTR  dwParam2 
)

Definition at line 589 of file driver.c.

592{
593 BOOL ret = FALSE;
594 TRACE("(%08lX, %s %04X, %p, %04X, %08lX, %08lX, %08lX)\n",
595 dwCallBack, DRIVER_getCallback(uFlags), uFlags, hDev, wMsg, dwUser, dwParam1, dwParam2);
596 if (!dwCallBack)
597 return ret;
598
599 switch (uFlags & DCB_TYPEMASK) {
600 case DCB_NULL:
601 /* Native returns FALSE = no notification, not TRUE */
602 return ret;
603 case DCB_WINDOW:
604 ret = PostMessageA((HWND)dwCallBack, wMsg, (WPARAM)hDev, dwParam1);
605 break;
606 case DCB_TASK: /* aka DCB_THREAD */
607 ret = PostThreadMessageA(dwCallBack, wMsg, (WPARAM)hDev, dwParam1);
608 break;
609 case DCB_FUNCTION:
610 ((LPDRVCALLBACK)dwCallBack)(hDev, wMsg, dwUser, dwParam1, dwParam2);
611 ret = TRUE;
612 break;
613 case DCB_EVENT:
614 ret = SetEvent((HANDLE)dwCallBack);
615 break;
616#if 0
617 /* FIXME: for now only usable in mmsystem.dll16
618 * If needed, should be enabled back
619 */
620 case 6: /* I would dub it DCB_MMTHREADSIGNAL */
621 /* this is an undocumented DCB_ value used for mmThreads
622 * loword of dwCallBack contains the handle of the lpMMThd block
623 * which dwSignalCount has to be incremented
624 */
625 if (pFnGetMMThread16)
626 {
627 WINE_MMTHREAD* lpMMThd = pFnGetMMThread16(LOWORD(dwCallBack));
628
629 TRACE("mmThread (%04x, %p) !\n", LOWORD(dwCallBack), lpMMThd);
630 /* same as mmThreadSignal16 */
631 InterlockedIncrement(&lpMMThd->dwSignalCount);
632 SetEvent(lpMMThd->hEvent);
633 /* some other stuff on lpMMThd->hVxD */
634 }
635 break;
636#endif
637#if 0
638 case 4:
639 /* this is an undocumented DCB_ value for... I don't know */
640 break;
641#endif
642 default:
643 WARN("Unknown callback type %d\n", uFlags & DCB_TYPEMASK);
644 return FALSE;
645 }
646 if (ret)
647 TRACE("Done\n");
648 else
649 WARN("Notification failure\n");
650 return ret;
651}
#define InterlockedIncrement
Definition: armddk.h:53
#define WARN(fmt,...)
Definition: debug.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
UINT uFlags
Definition: api.c:59
#define DCB_EVENT
Definition: mmddk.h:457
#define DCB_TYPEMASK
Definition: mmddk.h:458
#define DCB_FUNCTION
Definition: mmddk.h:456
#define DCB_TASK
Definition: mmddk.h:455
#define DCB_WINDOW
Definition: mmddk.h:454
#define DCB_NULL
Definition: mmddk.h:453
static const char * DRIVER_getCallback(DWORD uFlags)
Definition: driver.c:574
unsigned int BOOL
Definition: ntddk_ex.h:94
DRVCALLBACK * LPDRVCALLBACK
Definition: mmsystem.h:1003
#define LOWORD(l)
Definition: pedump.c:82
#define TRACE(s)
Definition: solgame.cpp:4
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
Definition: synch.c:733
int ret
UINT_PTR WPARAM
Definition: windef.h:207
BOOL WINAPI PostThreadMessageA(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ mciDriverNotify()

BOOL WINAPI mciDriverNotify ( HWND  hwndCallback,
UINT  uDeviceID,
UINT  uStatus 
)

Definition at line 2223 of file mci.c.

2224{
2225 TRACE("(%p, %04x, %04X)\n", hWndCallBack, wDevID, wStatus);
2226
2227 return PostMessageW(hWndCallBack, MM_MCINOTIFY, wStatus, wDevID);
2228}
#define MM_MCINOTIFY
Definition: mmsystem.h:55
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by MCI_Break(), MCI_Sound(), and MCI_SysInfo().

◆ mciDriverYield()

UINT WINAPI mciDriverYield ( UINT  uDeviceID)

Definition at line 2441 of file mci.c.

2442{
2443 LPWINE_MCIDRIVER wmd;
2444 UINT ret = 0;
2445
2446 TRACE("(%04x)\n", uDeviceID);
2447
2448 if (!(wmd = MCI_GetDriver(uDeviceID)) || !wmd->lpfnYieldProc) {
2449 MSG msg;
2450 PeekMessageW(&msg, 0, 0, 0, PM_REMOVE | PM_QS_SENDMESSAGE);
2451 } else {
2452 ret = wmd->lpfnYieldProc(uDeviceID, wmd->dwYieldData);
2453 }
2454
2455 return ret;
2456}
#define msg(x)
Definition: auth_time.c:54
static LPWINE_MCIDRIVER MCI_GetDriver(UINT wDevID)
Definition: mci.c:88
unsigned int UINT
Definition: ndis.h:50
DWORD dwYieldData
Definition: winemm.h:126
YIELDPROC lpfnYieldProc
Definition: winemm.h:125
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
#define PM_REMOVE
Definition: winuser.h:1196

◆ mciFreeCommandResource()

BOOL WINAPI mciFreeCommandResource ( UINT  uTable)

Definition at line 1681 of file mci.c.

1682{
1683 TRACE("(%08x)!\n", uTable);
1684
1685 if (uTable >= MAX_MCICMDTABLE || !S_MciCmdTable[uTable].lpTable)
1686 return FALSE;
1687
1688 FreeResource(S_MciCmdTable[uTable].hMem);
1689 S_MciCmdTable[uTable].hMem = NULL;
1690 S_MciCmdTable[uTable].lpTable = NULL;
1691 HeapFree(GetProcessHeap(), 0, S_MciCmdTable[uTable].aVerbs);
1692 S_MciCmdTable[uTable].aVerbs = 0;
1693 S_MciCmdTable[uTable].nVerbs = 0;
1694 return TRUE;
1695}
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735
BOOL WINAPI FreeResource(HGLOBAL handle)
Definition: res.c:559
static WINE_MCICMDTABLE S_MciCmdTable[MAX_MCICMDTABLE]
Definition: mci.c:563
#define MAX_MCICMDTABLE
Definition: mci.c:552
LPCWSTR * aVerbs
Definition: mci.c:560
HGLOBAL hMem
Definition: mci.c:557
const BYTE * lpTable
Definition: mci.c:558

◆ mciGetDriverData()

DWORD_PTR WINAPI mciGetDriverData ( UINT  uDeviceID)

Definition at line 2233 of file mci.c.

2234{
2235 LPWINE_MCIDRIVER wmd;
2236
2237 TRACE("(%04x)\n", uDeviceID);
2238
2239 wmd = MCI_GetDriver(uDeviceID);
2240
2241 if (!wmd) {
2242 WARN("Bad uDeviceID\n");
2243 return 0L;
2244 }
2245
2246 return wmd->dwPrivate;
2247}
#define L(x)
Definition: ntvdm.h:50
DWORD_PTR dwPrivate
Definition: winemm.h:124

◆ mciLoadCommandResource()

UINT WINAPI mciLoadCommandResource ( HINSTANCE  hInstance,
LPCWSTR  lpResName,
UINT  uType 
)

Definition at line 1641 of file mci.c.

1642{
1644 HRSRC hRsrc = 0;
1645 HGLOBAL hMem;
1646
1647 TRACE("(%p, %s, %d)!\n", hInst, debugstr_w(resNameW), type);
1648
1649 /* if a file named "resname.mci" exits, then load resource "resname" from it
1650 * otherwise directly from driver
1651 * We don't support it (who uses this feature ?), but we check anyway
1652 */
1653 if (!type) {
1654#if 0
1655 /* FIXME: we should put this back into order, but I never found a program
1656 * actually using this feature, so we may not need it
1657 */
1658 char buf[128];
1659 OFSTRUCT ofs;
1660
1661 strcat(strcpy(buf, resname), ".mci");
1662 if (OpenFile(buf, &ofs, OF_EXIST) != HFILE_ERROR) {
1663 FIXME("NIY: command table to be loaded from '%s'\n", ofs.szPathName);
1664 }
1665#endif
1666 }
1667 if ((hRsrc = FindResourceW(hInst, resNameW, (LPWSTR)RT_RCDATA)) &&
1668 (hMem = LoadResource(hInst, hRsrc))) {
1669 ret = MCI_SetCommandTable(hMem, type);
1670 FreeResource(hMem);
1671 }
1672 else WARN("No command table found in module for %s\n", debugstr_w(resNameW));
1673
1674 TRACE("=> %04x\n", ret);
1675 return ret;
1676}
char * strcat(char *DstString, const char *SrcString)
Definition: utclib.c:568
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
#define FIXME(fmt,...)
Definition: debug.h:111
HFILE WINAPI OpenFile(LPCSTR lpFileName, LPOFSTRUCT lpReOpenBuff, UINT uStyle)
Definition: create.c:368
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
#define MCI_NO_COMMAND_TABLE
Definition: mmddk.h:375
static UINT MCI_SetCommandTable(HGLOBAL hMem, UINT uDevType)
Definition: mci.c:686
HINSTANCE hInst
Definition: dxdiag.c:13
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define debugstr_w
Definition: kernel32.h:32
#define RT_RCDATA
Definition: pedump.c:372
CHAR szPathName[OFS_MAXPATHNAME]
Definition: winbase.h:1294
#define OF_EXIST
Definition: winbase.h:127
#define HFILE_ERROR
Definition: winbase.h:111
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ mciSetDriverData()

BOOL WINAPI mciSetDriverData ( UINT  uDeviceID,
DWORD_PTR  dwData 
)

Definition at line 2252 of file mci.c.

2253{
2254 LPWINE_MCIDRIVER wmd;
2255
2256 TRACE("(%04x, %08Ix)\n", uDeviceID, data);
2257
2258 wmd = MCI_GetDriver(uDeviceID);
2259
2260 if (!wmd) {
2261 WARN("Bad uDeviceID\n");
2262 return FALSE;
2263 }
2264
2265 wmd->dwPrivate = data;
2266 return TRUE;
2267}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

◆ mmGetCurrentTask()

DWORD WINAPI mmGetCurrentTask ( void  )

Definition at line 2912 of file winmm.c.

2913{
2914 return GetCurrentThreadId();
2915}
DWORD WINAPI GetCurrentThreadId(void)
Definition: thread.c:459

Referenced by START_TEST().

◆ mmTaskBlock()

void WINAPI mmTaskBlock ( DWORD  tid)

Definition at line 2885 of file winmm.c.

2886{
2887 MSG msg;
2888
2889 do
2890 {
2891 GetMessageA(&msg, 0, 0, 0);
2892 if (msg.hwnd) DispatchMessageA(&msg);
2893 } while (msg.message != WM_USER);
2894}
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define WM_USER
Definition: winuser.h:1895
BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)

◆ mmTaskCreate()

UINT WINAPI mmTaskCreate ( LPTASKCALLBACK  cb,
HANDLE ph,
DWORD_PTR  client 
)

Definition at line 2856 of file winmm.c.

2857{
2859 HANDLE hEvent = 0;
2860 struct mm_starter *mms;
2861
2862 mms = HeapAlloc(GetProcessHeap(), 0, sizeof(struct mm_starter));
2863 if (mms == NULL) return TASKERR_OUTOFMEMORY;
2864
2865 mms->cb = cb;
2866 mms->client = client;
2867 if (ph) hEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
2868 mms->event = hEvent;
2869
2870 hThread = CreateThread(0, 0, mmTaskRun, mms, 0, NULL);
2871 if (!hThread) {
2872 HeapFree(GetProcessHeap(), 0, mms);
2874 return TASKERR_OUTOFMEMORY;
2875 }
2877 if (ph) *ph = hEvent;
2879 return 0;
2880}
#define CloseHandle
Definition: compat.h:739
#define HeapAlloc
Definition: compat.h:733
BOOL WINAPI SetThreadPriority(IN HANDLE hThread, IN int nPriority)
Definition: thread.c:700
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
Definition: thread.c:137
static HANDLE hEvent
Definition: comm.c:54
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
HANDLE hThread
Definition: wizard.c:28
#define TASKERR_OUTOFMEMORY
Definition: mmddk.h:474
static FILE * client
Definition: client.c:41
DWORD client
Definition: winmm.c:2838
LPTASKCALLBACK cb
Definition: winmm.c:2837
HANDLE event
Definition: winmm.c:2839
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
Definition: synch.c:651
#define THREAD_PRIORITY_TIME_CRITICAL
Definition: winbase.h:281
static DWORD WINAPI mmTaskRun(void *pmt)
Definition: winmm.c:2842

◆ mmTaskSignal()

BOOL WINAPI mmTaskSignal ( DWORD  tid)

Definition at line 2899 of file winmm.c.

2900{
2901 return PostThreadMessageW(tid, WM_USER, 0, 0);
2902}
static TfClientId tid
BOOL WINAPI PostThreadMessageW(_In_ DWORD, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

◆ mmTaskYield()

void WINAPI mmTaskYield ( void  )

Definition at line 2907 of file winmm.c.

2907{}