mmioStringToFOURCC

Syntax

FOURCC mmioStringToFOURCC(sz, wFlags)

This function converts a null-terminated string to a four-character code.

Parameters

LPSTR sz

Specifies a far pointer to a null-terminated string to a four-character code.

WORD wFlags

Specifies options for the conversion:

MMIO_TOUPPER

Converts all characters to uppercase.

Return Value

The return value is the four character code created from the given string.

Comments

This function does not check to see if the string sz follows conventions regarding legal characters to use in a four-character code. The string is simply copied to a four-character code and padded to the right with blanks or truncated to four characters as required.

See Also

mmioFOURCC