mmioStringToFOURCC(3mms) — Subroutines
Name
mmioStringToFOURCC --- Convert a null-terminated string into a four-character code
Syntax
#include <mme/mme_api.h>
FOURCC APIENTRY mmioStringToFOURCC(LPCSTR sz,
UINT uFlags);
Arguments
LPCSTR sz
Specifies a pointer to a null-terminated string.
UINT uFlags
Specifies options for the conversion. The following flags are defined:
MMIO_TOUPPER
Converts all characters to uppercase.
NULL
Does not convert characters to uppercase.
Description
The mmioStringToFOURCC function converts a null-terminated string into a four-character code. The mmioStringToFOURCC function does not check to see if the sz argument follows conventions regarding legal characters to use in a four-character code. The string is copied to a four-character code and is either padded to the right with blanks or truncated to four characters, as required.
Extensions
None.
Return Values
Returns the four-character code created from the given string.