Conditionally compare strings with wildcard characters.
BOOL WINAPI IsMatch( LPCSTR lpszSrc, LPCSTR lpszPattern, DWORD dwFlag, BOOL bIgnoreCase )
Parameters
lpszSrc[in]
Pointer of the string to be compared.
lpszPattern[in]
The pattern which contains wildcard characters(*,?).
dwFlag[in]
MATCH_ISEQUAL | If this flag is specified, IsMatch function detects if lpszSrc is equal to lpszPattern. |
MATCH_ISCONTAIN | If this flag is specified, IsMatch function detects if lpszPattern contains lpszSrc. |
MATCH_ISNOCONTAIN | If this flag is specified, IsMatch detects if lpszPattern doesn't contain lpszSrc. |
MATCH_ISBEGINWITH | If this flag is specified, IsMatch detects if lpszPattern begins with lpszSrc. |
MATCH_ISENDWITH | If this flag is specified, IsMatch detects if lpszPattern ends with lpszSrc. |
MATCH_REGEXP | If this flag is specified, IsMatch detects if lpszPattern matches lpszSrc by regular expression. |
bIgnoreCase[in]
If this parameter is TRUE, the comparison is case-insensitive.
Return Value
The return value is TRUE if it succeeded; otherwise return value is FALSE.