|
Navigation
- Home
- Community
- Development
- myReactOS
- Fundraiser 2012
Doxygen
- Main Page
- Alphabetical List
- Data Structures
- Directories
- File List
- Data Fields
- Globals
- Related Pages
Search
|
|
|
Definition at line 19 of file midMessage.c.
{
MMRESULT Result = MMSYSERR_NOTSUPPORTED;
AcquireEntrypointMutex(MIDI_IN_DEVICE_TYPE);
SND_TRACE(L"midMessage - Message type %d\n", Message);
switch ( Message )
{
case MIDM_GETNUMDEVS :
{
Result = GetSoundDeviceCount(MIDI_IN_DEVICE_TYPE);
break;
}
case MIDM_GETDEVCAPS :
{
Result = MmeGetSoundDeviceCapabilities(MIDI_IN_DEVICE_TYPE,
DeviceId,
(PVOID) Parameter1,
Parameter2);
break;
}
case DRV_QUERYDEVICEINTERFACESIZE :
{
Result = MmeGetDeviceInterfaceString(MIDI_IN_DEVICE_TYPE, DeviceId, NULL, 0, (DWORD*)Parameter1);
break;
}
case DRV_QUERYDEVICEINTERFACE :
{
Result = MmeGetDeviceInterfaceString(MIDI_IN_DEVICE_TYPE, DeviceId, (LPWSTR)Parameter1, Parameter2, NULL);
break;
}
case MIDM_OPEN :
{
Result = MmeOpenDevice(MIDI_IN_DEVICE_TYPE,
DeviceId,
(LPWAVEOPENDESC) Parameter1,
Parameter2,
(DWORD_PTR*) PrivateHandle);
break;
}
case MIDM_CLOSE :
{
Result = MmeCloseDevice(PrivateHandle);
break;
}
case MIDM_START :
{
Result = MmeSetState(PrivateHandle, TRUE);
break;
}
case MIDM_STOP :
{
Result = MmeSetState(PrivateHandle, FALSE);
break;
}
}
SND_TRACE(L"midMessage returning MMRESULT %d\n", Result);
ReleaseEntrypointMutex(MIDI_IN_DEVICE_TYPE);
return Result;
}
|
Generated on Sun May 27 2012 06:04:04 for ReactOS by
1.7.6.1
|