public unsafe void FileAttributeDataSize() { sizeof(Win32FileAttributeData).Should().Be(36); // An extra sanity check to make sure we're aligning correctly as // we're forcing uint size packing. Win32FileAttributeData data = new Win32FileAttributeData(); ((ulong)&data.FileSize - (ulong)&data).Should().Be(28); }
public static extern bool GetFileAttributesExW( string lpFileName, GetFileExtendedInformationLevels fInfoLevelId, out Win32FileAttributeData lpFileInformation);
internal static extern bool GetFileAttributesTransacted([MarshalAs(UnmanagedType.LPWStr)] string lpFileName, [MarshalAs(UnmanagedType.U4)] GetFileExInfoLevels fInfoLevelId, out Win32FileAttributeData lpFileInformation, SafeHandle hTransaction);