Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "PathMatchSpec" in [All]

shlwapi

.
Summary
PathMatchSpec - Searches a string using a Microsoft MS-DOS wildcard match type.
.

static extern bool PathMatchSpec([In] string pszFileParam, [In] string pszSpec);

.

<DllImport("shlwapi.dll", EntryPoint:="PathMatchSpecW",  SetLastError:=True, CharSet:=CharSet.Unicode)> _

.

Public Function PathMatchSpec(<MarshalAs(UnmanagedType.LPTStr)>pszFile As String, _

.

    Private Declare Auto Function PathMatchSpec Lib "shlwapi" _

.

if(PathMatchSpec("C:\\test.txt", "*.txt"))

.

    Return PathMatchSpec(sFile, sSpec)

.

    MatchSpec = PathMatchSpec(sFile, sSpec)

.
Documentation
[PathMatchSpec] on MSDN

 
Access PInvoke.net directly from VS: