MMIOProc
The MMIOProc
function is a custom input/output (I/O) procedure installed by the mmioInstallIOProc
LRESULT MMIOProc(
LPSTR lpmmioinfo, |
|
UINT uMsg, |
|
LONG lParam1, |
|
LONG lParam2 |
|
); |
|
Parameters
lpmmioinfo
Points to an MMIOINFO
The I/O procedure must maintain the lDiskOffset member in this
structure to indicate the file offset to the next read or write location. The
I/O procedure can use the adwInfo[] member to store state information.
The I/O procedure should not modify any other members of the MMIOINFO
structure.
uMsg
Specifies a
message indicating the requested I/O operation. Messages that can be received
include MMIOM_OPEN
lParam1
Specifies an
application-defined parameter for the message.
lParam2
Specifies an application-defined
parameter for the message.
Return Values
The return
value depends on the message specified by uMsg. If the I/O procedure
does not recognize a message, it should return zero.
Remarks
The
four-character code specified by the fccMMIOProc member in the MMIOINFO
The mmioInstallIOProc
If an
application calls mmioInstallIOProc more than once to register the same
I/O procedure, then it must call mmioInstallIOProc to remove the
procedure once for each time it installed the procedure.
mmioInstallIOProc will not prevent an application from installing two
different I/O procedures with the same identifier, or installing an I/O
procedure with one of the predefined identifiers ( DOS , MEM ). The most
recently installed procedure takes precedence, and the most recently installed
procedure is the first one to be removed.
When
searching for a specified I/O procedure, local procedures are searched first,
then global procedures.
See Also