hmmio (HMMIO) - input
usMsg (USHORT) - input
lParam1 (LONG) - input
lParam2 (LONG) - input
rc (LONG) - returns
Regarding message-specific return codes, additional information may be contained in the ulErrorRet field of the MMIOINFO structure. This is accessed by called mmioGetLastError.
MMIO_ERROR