WIN32_FIND_DATA.cs 1022 B

1234567891011121314151617181920212223242526272829
  1. using System.IO;
  2. using System.Runtime.InteropServices;
  3. namespace QVCopier.Utility.FindFile
  4. {
  5. // The CharSet must match the CharSet of the corresponding PInvoke signature
  6. [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
  7. internal struct WIN32_FIND_DATA
  8. {
  9. public FileAttributes dwFileAttributes;
  10. public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime;
  11. public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime;
  12. public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime;
  13. public uint nFileSizeHigh;
  14. public uint nFileSizeLow;
  15. public uint dwReserved0;
  16. public uint dwReserved1;
  17. [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
  18. public string cFileName;
  19. [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
  20. public string cAlternateFileName;
  21. public uint dwFileType;
  22. public uint dwCreatorType;
  23. public uint wFinderFlags;
  24. }
  25. }