Public NotInheritable Class ShlWapi
BOOL PathIsDirectoryEmpty(
LPCTSTR pszPath
);
<DllImport("shlwapi.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function PathIsDirectoryEmpty( _
<InAttribute(), MarshalAs(UnmanagedType.LPTStr)> ByVal pszPath As String _
) _
As <MarshalAs(UnmanagedType.Bool)> Boolean
leave body emtpy
End Function
or
Declare Auto Function PathIsDirectoryEmpty Lib "shlwapi.dll" _
(<InAttribute(), MarshalAs(UnmanagedType.LPTStr)> ByVal pszPath As String) _
As <MarshalAs(UnmanagedType.Bool)> Boolean
End Class