mmioStringToFOURCCW function (mmiscapi.h)

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

Syntax

FOURCC mmioStringToFOURCCW(
  LPCWSTR sz,
  UINT    uFlags
);

Parameters

sz

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

uFlags

Flags for the conversion. The following value is defined:

Value Meaning
MMIO_TOUPPER Converts all characters to uppercase.

Return value

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.

Note

The mmiscapi.h header defines mmioStringToFOURCC as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mmiscapi.h (include Mmiscapi.h, Windows.h)
Library Winmm.lib
DLL Winmm.dll