SymMatchString function (dbghelp.h)

Compares the specified string to the specified wildcard expression.

Syntax

BOOL IMAGEAPI SymMatchString(
  [in] PCSTR string,
  [in] PCSTR expression,
  [in] BOOL  fCase
);

Parameters

[in] string

The string, such as a symbol name, to be compared to the expression parameter.

[in] expression

The wildcard expression to compare to the string parameter. The wildcard expression supports the inclusion of the * and ? characters. * matches any string and ? matches any single character.

[in] fCase

A variable that indicates whether or not the comparison is to be case sensitive.

Return value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.

Remarks

All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

Requirements

Requirement Value
Target Platform Windows
Header dbghelp.h
Library Dbghelp.lib
DLL Dbghelp.dll
Redistributable DbgHelp.dll 6.2 or later

See also

DbgHelp Functions