Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

mmioSendMessage function

The mmioSendMessage function sends a message to the I/O procedure associated with the specified file.

Syntax


LRESULT mmioSendMessage(
  HMMIO hmmio,
  UINT wMsg,
  LPARAM lParam1,
  LPARAM lParam2
);

Parameters

hmmio

File handle for a file opened by using the mmioOpen function.

wMsg

Message to send to the I/O procedure.

lParam1

Parameter for the message.

lParam2

Parameter for the message.

Return value

Returns a value that corresponds to the message. If the I/O procedure does not recognize the message, the return value should be zero.

Remarks

Use this function to send custom user-defined messages. Do not use it to send the MMIOM_OPEN, MMIOM_CLOSE, MMIOM_READ, MMIOM_WRITE, MMIOM_WRITEFLUSH, or MMIOM_SEEK messages. Define custom messages to be greater than or equal to the MMIOM_USER constant.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

 

 

Community Additions

Show:
© 2014 Microsoft