Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Jul : File name matching
| Subject: | File name matching |
| Posted by: | "Steven" (s.aleot..@c-center.it) |
| Date: | Wed, 13 Jul 2005 13:10:20 |
Hi,
I need to know if a file name matches a search pattern with wildcards * and
?
I found an API
SymMatchFileName from dbghelp.dll but it doesn't seem to work properly.
It always returns 0 whit LastError=6..
the declaration:
function
SymMatchFileName(FileName,Match:PChar;DummyOut1,DummyOut2:Pointer):boolean;s
tdcall; external 'dbghelp.dll';
usage:
if(SymMatchFileName('MyDll.dll','*.*',nil,nil))then
ShowMessage('Matched')
else
ShowMessage('NOT matched')