FILE_INFO_3 (Structures)
Last changed: -202.12.109.250

.
Summary
The FILE_INFO_3 structure contains the identification number and other pertinent information about files, devices, and pipes.

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
struct FILE_INFO_3
{
   public int fi3_id;
   public int fi3_permission;
   public int fi3_num_locks;
   [MarshalAs(UnmanagedType.LPWStr)]
   public string fi3_pathname;
   [MarshalAs(UnmanagedType.LPWStr)]
   public string fi3_username;
}

VB Definition:

Note
When using this structure with NetFileEnum, the "Pack:=4" attribute may cause Marshal.PtrToStructure to fail.

    <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto, Pack:=4)> _
    Structure FILE_INFO_3
    Dim fi3_id As Integer
    Dim fi3_permission As Integer
    Dim fi3_num_locks As Integer
    Dim fi3_pathname As String
    Dim fi3_username As String
    End Structure

User-Defined Field Types:

None.

Notes:

See NetFileEnum

Documentation
FILE_INFO_3 on MSDN