Win32ApiConstant.cs 1.0 KB

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace Y.FileQueryEngine.Win32.Constants
  3. {
  4. internal sealed class Win32ApiConstant
  5. {
  6. public const UInt32 GENERIC_READ = 0x80000000;
  7. public const UInt32 GENERIC_WRITE = 0x40000000;
  8. public const UInt32 FILE_SHARE_READ = 0x00000001;
  9. public const UInt32 FILE_SHARE_WRITE = 0x00000002;
  10. public const UInt32 FILE_ATTRIBUTE_DIRECTORY = 0x00000010;
  11. public const UInt32 CREATE_NEW = 1;
  12. public const UInt32 CREATE_ALWAYS = 2;
  13. public const UInt32 OPEN_EXISTING = 3;
  14. public const UInt32 OPEN_ALWAYS = 4;
  15. public const UInt32 TRUNCATE_EXISTING = 5;
  16. public const UInt32 FILE_ATTRIBUTE_NORMAL = 0x80;
  17. public const UInt32 FILE_FLAG_BACKUP_SEMANTICS = 0x02000000;
  18. public const Int32 INVALID_HANDLE_VALUE = -1;
  19. public static Int32 GWL_EXSTYLE = -20;
  20. public static Int32 WS_EX_LAYERED = 0x00080000;
  21. public static Int32 WS_EX_TRANSPARENT = 0x00000020;
  22. public const UInt32 FSCTL_GET_OBJECT_ID = 0x9009c;
  23. }
  24. }