# mmGetVersion

Obtains the version and supported formats of the Multimedia File Interface library.

#### Prototype

DWORD mmGetVersion ( MMFI_VERS_INFO *pInfo, WORD infoSize)

Argument | Description
pInfo | A pointer to the MMFI_VERS_INFO structure that contains information about the version and supported formats of the Multimedia File Interface library.
infoSize | The size of the MMFI_VERS_INFO structure.

#### Return values

Return value | Description
SUCCESS |
MMERR_BUFFER_TOO_SMALL | infoSize is too small to receive the information structure.
MMERR_INVALID_POINTER | pInfo is NULL.

#### Example

MMFI_VERS_INFO mmFileVersInfo;
WORD fileVersInfoSize = sizeof(mmFileVersInfo);
DWORD ret;
if ((ret = mmGetVersion(&mmFileVersInfo, fileVersInfoSize)) != SUCCESS)
{
printf ("\nERROR in mmGetVersion (%d)\n", ret);
exit( 1 );
}