PRB: waveInMessage or waveOutMessage Return MMSYSERR_INVALPARAM

Last reviewed: February 16, 1998
Article ID: Q180580
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) on the following platforms:

        - Microsoft Windows 95
    

SYMPTOMS

When you call waveInMessage or waveOutMessage, you may receive an error code MMSYSERR_INVALPARAM, as defined in mmsystem.h.

CAUSE

Mmsystem performs range checking on the uMsg parameter passed to waveInMessage or waveOutMessage. If uMsg is not within the valid range for an IOCTL or MAPPER message, the function will fail.

The range checking is performed as follows:

     if ((uMsg < DRVM_IOCTL) || (uMsg >= DRVM_IOCTL_LAST) && (uMsg <
          DRVM_MAPPER))
         return MMSYSERR_INVALPARAM;

   DRVM_IOCTL, DRVM_IOCTL_LAST, and DRVM_MAPPER are defined in mmddk.h.

RESOLUTION

When you call waveInMessage or waveOutMessage, make sure that the uMsg parameter is a valid IOCTL or MAPPER message.

STATUS

This behavior is by design.

REFERENCES

Win32 Software Development Kit for Windows 95 and Windows NT: waveInMessage; waveOutMessage

Windows 95 Device Driver Kit: multimedia drivers

Keywords          : MMWave
Version           : WINNT:4.0; WIN95
Platform          : Win95
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 16, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.