The following example illustrates the the entry point used to access the functionality of an I/O procedure.

LONG APIENTRY IOProc_Entry ( PVOID   pmmioStr,
                             USHORT  usMessage,
                             LONG    lParam1,
                             LONG    lParam2)

Associated parameters include the following.

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³Parameter      ³Description                                  ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³PVOID pmmioStr ³Specifies a pointer to an MMIOINFO data      ³
³               ³structure that contains information about the³
³               ³open file.                                   ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³USHORT usMsg   ³Specifies the message that the file I/O      ³
³               ³procedure is being asked to process.         ³
³               ³(User-defined messages must have messages    ³
³               ³defined above MMIOM_USER.)                   ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³LONG lParam1   ³Specifies message-dependent information such ³
³               ³as a file name.                              ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³LONG lParam2   ³Specifies additional message-dependent       ³
³               ³information.  (Used with some messages as    ³
³               ³values.)                                     ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

Note: The return value is message-dependent. If the I/O procedure does not recognize a message passed in by usMsg, and the default message handler does not recognize usMsg, then it must return MMIOERR_UNSUPPORTED_MESSAGE.