Group: Windows Multimedia - Library: winmm
The mixerOpen function opens a specified mixer device and ensures that the device will not be removed until the application closes the handle.
MMRESULT mixerOpen(
LPHMIXER phmx,
UINT uMxId,
DWORD_PTR dwCallback,
DWORD_PTR dwInstance,
DWORD fdwOpen
);
DECLARE INTEGER mixerOpen IN winmm;
INTEGER @ phmx,;
INTEGER uMxId,;
INTEGER dwCallback,;
INTEGER dwInstance,;
INTEGER fdwOpen
phmx Pointer to a variable that will receive a handle identifying the opened mixer device.
uMxId Identifier of the mixer device to open.
dwCallback Handle to a window called when the state of an audio line and/or control associated with the device being opened is changed.
dwInstance User instance data passed to the callback function.
fdwOpen Flags for opening the device.
Returns MMSYSERR_NOERROR (0) if successful or an error otherwise.