[DllImport("rapi.dll", CharSet=CharSet.Unicode)]
public static extern IntPtr CeFindFirstFile(
string lpFileName,
ref CE_FIND_DATA lpFindFileData);
<DllImport("rapi.dll", CharSet:=CharSet.Unicode, SetLastError:=True)>
Public Function CeFindFirstFile(
ByVal s As String,
ByRef results As CE_FIND_DATA) As Integer
End Function
CE_FIND_DATA structure info at http://msdn.microsoft.com/en-us/library/aa917196.aspx
Function info on msdn at http://msdn.microsoft.com/en-us/library/aa917424.aspx
Please add some!
CE_FIND_DATA findData = new CE_FIND_DATA();
IntPtr hFindFile = CeFindFirstFile("\\windows\\test.dll",ref findData)