PathMatchSpec (shlwapi)
Last changed: johnbell149@gmail.com-202.74.138.1

.
Summary
TODO - a short description

C# Signature:

[DllImport("shlwapi.dll", CharSet=CharSet.Auto)]
static extern bool PathMatchSpec([In] String pszFileParam, [In] String pszSpec);

VB Signature:

    Private Declare Auto Function PathMatchSpec Lib "shlwapi" _
    (ByVal pszFileParam As String, _
     ByVal pszSpec As String) As Boolean

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

if(PathMatchSpec("C:\\test.txt", "*.txt"))
{
   // This is text file.
}

VB:

    Private Function MatchSpec(ByVal sFile As String, ByVal sSpec As String) As Boolean

    Return PathMatchSpec(sFile, sSpec)

    End Function

Alternative Managed API:

Do you know one? Please contribute it!

Documentation