ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

auxMessage.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:     ReactOS Sound System "MME Buddy" Library
00003  * LICENSE:     GPL - See COPYING in the top level directory
00004  * FILE:        lib/sound/mmebuddy/auxiliary/auxMessage.c
00005  *
00006  * PURPOSE:     Provides the auxMessage exported function, as required by
00007  *              the MME API, for auxiliary device support.
00008  *
00009  * PROGRAMMERS: Andrew Greenwood (silverblade@reactos.org)
00010 */
00011 
00012 #include "precomp.h"
00013 
00014 /*
00015     Standard MME driver entry-point for messages relating to auxiliary devices.
00016 */
00017 DWORD
00018 APIENTRY
00019 auxMessage(
00020     UINT DeviceId,
00021     UINT Message,
00022     DWORD_PTR PrivateHandle,
00023     DWORD_PTR Parameter1,
00024     DWORD_PTR Parameter2)
00025 {
00026     MMRESULT Result = MMSYSERR_NOTSUPPORTED;
00027 
00028     AcquireEntrypointMutex(AUX_DEVICE_TYPE);
00029 
00030     SND_TRACE(L"auxMessage - Message type %d\n", Message);
00031 
00032     switch ( Message )
00033     {
00034         case AUXDM_GETNUMDEVS :
00035         {
00036             Result = GetSoundDeviceCount(AUX_DEVICE_TYPE);
00037             break;
00038         }
00039 
00040         case AUXDM_GETDEVCAPS :
00041         {
00042             Result = MmeGetSoundDeviceCapabilities(AUX_DEVICE_TYPE,
00043                                                    DeviceId,
00044                                                    (PVOID) Parameter1,
00045                                                    Parameter2);
00046             break;
00047         }
00048     }
00049 
00050     SND_TRACE(L"auxMessage returning MMRESULT %d\n", Result);
00051 
00052     ReleaseEntrypointMutex(AUX_DEVICE_TYPE);
00053 
00054     return Result;
00055 }

Generated on Sun May 27 2012 04:36:11 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.