mmioStringToFOURCC

  FOURCC mmioStringToFOURCC(sz, uFlags)    
  LPCSTR sz;    
  UINT uFlags;    

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

Parameters

sz

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

uFlags

Specifies options for the conversion:

Value Meaning

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 referenced by sz follows any conventions regarding which characters to include in a four-character code. The string is simply copied to a four-character code and padded with blanks or truncated to four characters if required.