mmioStringToFOURCC function

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

Syntax


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_TOUPPERConverts 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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

Unicode and ANSI names

mmioStringToFOURCCW (Unicode) and mmioStringToFOURCCA (ANSI)

 

 

Show: