IOProc
The IOProc
function accesses a unique storage system, such as a database or file archive.
You can install or remove this callback function by using the mmioInstallIOProc
IOProc is a placeholder for the application-defined function
name. The actual name must be exported by including it in a EXPORTS statement
in the application s module-definition file.
LRESULT PASCAL IOProc(
LPSTR lpmmioinfo, |
|
UINT wMsg, |
|
LPARAM lParam1, |
|
LPARAM lParam2 |
|
); |
|
Parameters
lpmmioinfo
Address of an
MMIOINFO
wMsg
Message
indicating the requested I/O operation. Messages that can be received include MMIOM_OPEN
lParam1 and lParam2
Parameters
for the message.
Return Values
Returns a value
that corresponds to the message specified by wMsg. If the I/O procedure does
not recognize a message, it should return zero.
Remarks
The
four-character code specified by the fccIOProc member of the MMIOINFO
The mmioInstallIOProc
If an application
calls mmioInstallIOProc more than once to register the same I/O
procedure, it must call this function to remove the procedure once for each
time it installed the procedure.
The
mmioInstallIOProc function does 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 or 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