[DllImport("shlwapi.dll", CharSet=CharSet.Auto)]
static extern bool PathMatchSpec([In] String pszFileParam, [In] String pszSpec);
Declare Function PathMatchSpec Lib "shlwapi.dll" (TODO) As TODO
None.
None.
Please add some!
if(PathMatchSpec("C:\\test.txt", "*.txt"))
{
// This is text file.
}
Do you know one? Please contribute it!