Export (0) Print
Expand All

mmioStringToFOURCC

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

FOURCC mmioStringToFOURCC(
  LPCTSTR sz,  
  UINT wFlags 
);

Parameters

sz

Pointer to a null-terminated string to convert to a four-character code.

wFlags

Flags for the conversion. The following value is defined:

Value Meaning
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.

Requirements

  Windows NT/2000/XP: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Mmsystem.h; include Windows.h.
  Library: Use Winmm.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP.

Show:
© 2015 Microsoft