Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

waveInOpen (winmm)
 
.
Summary

C# Signature:

[Flags]
    enum WaveInOpenFlags : uint
    {
        CALLBACK_NULL = 0,
        CALLBACK_FUNCTION = 0x30000,
        CALLBACK_EVENT = 0x50000,
        CALLBACK_WINDOW = 0x10000,
        CALLBACK_THREAD = 0x20000,
        WAVE_FORMAT_QUERY = 1,
        WAVE_MAPPED = 4,
        WAVE_FORMAT_DIRECT = 8
    }

VB Signature:

<Flags()> _
Friend Enum WaveInOpenFlags As UInteger
  CALLBACK_NULL = 0
  CALLBACK_FUNCTION = &H30000
  CALLBACK_EVENT = &H50000
  CALLBACK_WINDOW = &H10000
  CALLBACK_THREAD = &H20000
  WAVE_FORMAT_QUERY = 1
  WAVE_MAPPED = 4
  WAVE_FORMAT_DIRECT = 8
End Enum

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

Return values:

    const uint MMSYSERR_BASE = 0;
    const uint MMSYSERR_NOERROR = 0; /* no error */
    const uint MMSYSERR_ERROR = MMSYSERR_BASE + 1; /* unspecified error */
    const uint MMSYSERR_BADDEVICEID = MMSYSERR_BASE + 2; /* device ID out of range */
    const uint MMSYSERR_NOTENABLED = MMSYSERR_BASE + 3; /* driver failed enable */
    const uint MMSYSERR_ALLOCATED = MMSYSERR_BASE + 4; /* device already allocated */
    const uint MMSYSERR_INVALHANDLE = MMSYSERR_BASE + 5; /* device handle is invalid */
    const uint MMSYSERR_NODRIVER = MMSYSERR_BASE + 6; /* no device driver present */
    const uint MMSYSERR_NOMEM = MMSYSERR_BASE + 7; /* memory allocation error */
    const uint MMSYSERR_NOTSUPPORTED = MMSYSERR_BASE + 8; /* function isn't supported */
    const uint MMSYSERR_BADERRNUM = MMSYSERR_BASE + 9; /* error value out of range */
    const uint MMSYSERR_INVALFLAG = MMSYSERR_BASE + 10; /* invalid flag passed */
    const uint MMSYSERR_INVALPARAM = MMSYSERR_BASE + 11; /* invalid parameter passed */
    const uint MMSYSERR_HANDLEBUSY = MMSYSERR_BASE + 12; /* handle being used */
    const uint MMSYSERR_INVALIDALIAS = MMSYSERR_BASE + 13; /* specified alias not found */
    const uint MMSYSERR_BADDB = MMSYSERR_BASE + 14; /* bad registry database */
    const uint MMSYSERR_KEYNOTFOUND = MMSYSERR_BASE + 15; /* registry key not found */
    const uint MMSYSERR_READERROR = MMSYSERR_BASE + 16; /* registry read error */
    const uint MMSYSERR_WRITEERROR = MMSYSERR_BASE + 17; /* registry write error */
    const uint MMSYSERR_DELETEERROR = MMSYSERR_BASE + 18; /* registry delete error */
    const uint MMSYSERR_VALNOTFOUND = MMSYSERR_BASE + 19; /* registry value not found */
    const uint MMSYSERR_NODRIVERCB = MMSYSERR_BASE + 20; /* driver does not call */
    const uint MMSYSERR_MOREDATA  = MMSYSERR_BASE + 21; /* more data to be returned */
    const uint MMSYSERR_LASTERROR = MMSYSERR_BASE + 21; /* last error in range */

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
waveInOpen on MSDN

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions