mmioStringToFOURCC

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

FOURCC mmioStringToFOURCC(
  LPCSTR sz,  
  UINT wFlags 
);
 

Parameters

sz
Address of a null-terminated string to convert to a four-character code.
wFlags
Flags for the conversion. The following value is defined:
MMIO_TOUPPER
Converts all characters to uppercase.

Return Values

Returns the four-character code created from the given string.

Remarks

This function copies the string to a four-character code and pads it with space characters or truncates it if necessary. It does not check whether the code it returns is valid.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in mmsystem.h.
  Import Library: Use winmm.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Multimedia File I/O Overview, Multimedia File I/O Functions