CeFindFirstFile (rapi)
Last changed: -150.161.2.213

.
Summary
This function searches a directory for a file whose name matches the specified filename. It examines subdirectory names as well as filenames.

C# Signature:

[DllImport("rapi.dll", CharSet=CharSet.Unicode)]
public static extern IntPtr CeFindFirstFile(
    string lpFileName,
    ref CE_FIND_DATA lpFindFileData);

VB.Net Signature

  <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

User-Defined Types:

CE_FIND_DATA structure info at http://msdn.microsoft.com/en-us/library/aa917196.aspx

Notes:

Function info on msdn at http://msdn.microsoft.com/en-us/library/aa917424.aspx

Tips & Tricks:

Please add some!

Sample Code:

CE_FIND_DATA findData = new CE_FIND_DATA();
IntPtr hFindFile = CeFindFirstFile("\\windows\\test.dll",ref findData)

Alternative Managed API:

Documentation