1111using System . Runtime . InteropServices . ComTypes ;
1212using System . Text ;
1313using System . Windows . Forms ;
14- using Vanara ;
1514using Vanara . PInvoke ;
1615using Windows . System ;
1716using Windows . Win32 ;
1817using Windows . Win32 . Foundation ;
1918using Windows . Win32 . Storage . FileSystem ;
20- using static Files . App . Constants . Widgets ;
21- using static Vanara . PInvoke . Kernel32 ;
22- using COMPRESSION_FORMAT = Windows . Win32 . Storage . FileSystem . COMPRESSION_FORMAT ;
2319using HRESULT = Vanara . PInvoke . HRESULT ;
2420using HWND = Vanara . PInvoke . HWND ;
2521
@@ -333,7 +329,7 @@ public static string ExtractStringFromDLL(string file, int number)
333329 }
334330
335331 if ( iconData is not null || iconOptions . HasFlag ( IconOptions . ReturnThumbnailOnly ) )
336- return iconData ;
332+ return iconData ;
337333 else
338334 {
339335 var shfi = new Shell32 . SHFILEINFO ( ) ;
@@ -342,7 +338,7 @@ public static string ExtractStringFromDLL(string file, int number)
342338 // Cannot access file, use file attributes
343339 var useFileAttibutes = iconData is null ;
344340
345- var ret = Shell32 . SHGetFileInfo ( path , isFolder ? FileAttributes . Directory : 0 , ref shfi , Shell32 . SHFILEINFO . Size , flags ) ;
341+ var ret = Shell32 . SHGetFileInfo ( path , isFolder ? FileAttributes . Directory : 0 , ref shfi , Shell32 . SHFILEINFO . Size , flags ) ;
346342 if ( ret == IntPtr . Zero )
347343 return iconData ;
348344
@@ -970,7 +966,7 @@ public static unsafe bool CanCompressContent(string path)
970966 return false ;
971967
972968 // 0x00000010 FILE_FILE_COMPRESSION
973- return ( fileSystemFlags & 0x00000010 ) != 0 ;
969+ return ( fileSystemFlags & PInvoke . FILE_FILE_COMPRESSION ) != 0 ;
974970 }
975971
976972 public static unsafe bool SetCompressionAttributeIoctl ( string lpFileName , bool isCompressed )
@@ -996,7 +992,7 @@ public static unsafe bool SetCompressionAttributeIoctl(string lpFileName, bool i
996992
997993 var result = PInvoke . DeviceIoControl (
998994 new ( hFile . DangerousGetHandle ( ) ) ,
999- Win32PInvoke . FSCTL_SET_COMPRESSION ,
995+ PInvoke . FSCTL_SET_COMPRESSION ,
1000996 & compressionFormat ,
1001997 sizeof ( ushort ) ,
1002998 null ,
0 commit comments