Indicates if a string matches a search pattern.
#include <smsutapi.h> NWBOOLEAN NWSMGenericWildMatch ( UINT32 nameSpaceType, void *pattern, void *string);
(IN) Specifies the name space type of the string and pattern (see nameSpaceType Values).
(IN) Points to the pattern to search for (see Wildcard Values).
(IN) Points to the string to analyze.
The following table lists the return values associated with the function.
NWSMGenericWildMatch supports strings in UTF-8 format.
pattern can contain the following wild cards: ASTERICKS, QUESTION, SQUESTION, or SPERIOD.
If you need double-byte enabling, call NWSMMatchName.
#include <smsutapi.h> CCODE isWildMatch; char patternBuf[15], stringBuf[15]; /* Arbitrary size. */ STRING pattern = (STRING)patternBuf, string = stringBuf; UINT32 nameSpace=DOSNameSpace; isWildMatch = NWSMGenericWildMatch(nameSpace,pattern,string);