@@ -6,88 +6,92 @@ namespace PSEverything
66{
77 internal class NativeMethods64
88 {
9- [ DllImport ( "Everything64.dll" , CharSet = CharSet . Unicode ) ]
9+ const string Everything64Dll = "Everything64.dll" ;
10+ [ DllImport ( Everything64Dll , CharSet = CharSet . Unicode ) ]
1011 public static extern int Everything_SetSearchW ( string lpSearchString ) ;
1112
12- [ DllImport ( "Everything64.dll" ) ]
13+ [ DllImport ( Everything64Dll ) ]
1314 public static extern void Everything_SetMatchPath ( bool bEnable ) ;
1415
15- [ DllImport ( "Everything64.dll" ) ]
16+ [ DllImport ( Everything64Dll ) ]
1617 public static extern void Everything_SetMatchCase ( bool bEnable ) ;
1718
18- [ DllImport ( "Everything64.dll" ) ]
19+ [ DllImport ( Everything64Dll ) ]
1920 public static extern void Everything_SetMatchWholeWord ( bool bEnable ) ;
2021
21- [ DllImport ( "Everything64.dll" ) ]
22+ [ DllImport ( Everything64Dll ) ]
2223 public static extern void Everything_SetRegex ( bool bEnable ) ;
2324
24- [ DllImport ( "Everything64.dll" ) ]
25+ [ DllImport ( Everything64Dll ) ]
2526 public static extern void Everything_SetMax ( int dwMax ) ;
2627
27- [ DllImport ( "Everything64.dll" ) ]
28+ [ DllImport ( Everything64Dll ) ]
2829 public static extern void Everything_SetOffset ( int dwOffset ) ;
2930
30- [ DllImport ( "Everything64.dll" ) ]
31+ [ DllImport ( Everything64Dll ) ]
3132 public static extern bool Everything_GetMatchPath ( ) ;
3233
33- [ DllImport ( "Everything64.dll" ) ]
34+ [ DllImport ( Everything64Dll ) ]
3435 public static extern bool Everything_GetMatchCase ( ) ;
3536
36- [ DllImport ( "Everything64.dll" ) ]
37+ [ DllImport ( Everything64Dll ) ]
3738 public static extern bool Everything_GetMatchWholeWord ( ) ;
3839
39- [ DllImport ( "Everything64.dll" ) ]
40+ [ DllImport ( Everything64Dll ) ]
4041 public static extern bool Everything_GetRegex ( ) ;
4142
42- [ DllImport ( "Everything64.dll" ) ]
43+ [ DllImport ( Everything64Dll ) ]
4344 public static extern UInt32 Everything_GetMax ( ) ;
4445
45- [ DllImport ( "Everything64.dll" ) ]
46+ [ DllImport ( Everything64Dll ) ]
4647 public static extern UInt32 Everything_GetOffset ( ) ;
4748
48- [ DllImport ( "Everything64.dll" ) ]
49+ [ DllImport ( Everything64Dll ) ]
4950 public static extern string Everything_GetSearchW ( ) ;
50-
51- [ DllImport ( "Everything64.dll" ) ]
51+
52+ [ DllImport ( Everything64Dll ) ]
5253 public static extern int Everything_GetLastError ( ) ;
5354
54- [ DllImport ( "Everything64.dll" ) ]
55+ [ DllImport ( Everything64Dll ) ]
5556 public static extern bool Everything_QueryW ( bool bWait ) ;
5657
57- [ DllImport ( "Everything64.dll" ) ]
58+ [ DllImport ( Everything64Dll ) ]
5859 public static extern void Everything_SortResultsByPath ( ) ;
5960
60- [ DllImport ( "Everything64.dll" ) ]
61+ [ DllImport ( Everything64Dll ) ]
6162 public static extern int Everything_GetNumFileResults ( ) ;
6263
63- [ DllImport ( "Everything64.dll" ) ]
64+ [ DllImport ( Everything64Dll ) ]
6465 public static extern int Everything_GetNumFolderResults ( ) ;
6566
66- [ DllImport ( "Everything64.dll" ) ]
67+ [ DllImport ( Everything64Dll ) ]
6768 public static extern int Everything_GetNumResults ( ) ;
6869
69- [ DllImport ( "Everything64.dll" ) ]
70+ [ DllImport ( Everything64Dll ) ]
7071 public static extern int Everything_GetTotFileResults ( ) ;
7172
72- [ DllImport ( "Everything64.dll" ) ]
73+ [ DllImport ( Everything64Dll ) ]
7374 public static extern int Everything_GetTotFolderResults ( ) ;
7475
75- [ DllImport ( "Everything64.dll" ) ]
76+ [ DllImport ( Everything64Dll ) ]
7677 public static extern int Everything_GetTotResults ( ) ;
7778
78- [ DllImport ( "Everything64.dll" ) ]
79+ [ DllImport ( Everything64Dll ) ]
7980 public static extern bool Everything_IsVolumeResult ( int nIndex ) ;
8081
81- [ DllImport ( "Everything64.dll" ) ]
82+ [ DllImport ( Everything64Dll ) ]
8283 public static extern bool Everything_IsFolderResult ( int nIndex ) ;
8384
84- [ DllImport ( "Everything64.dll" ) ]
85+ [ DllImport ( Everything64Dll ) ]
8586 public static extern bool Everything_IsFileResult ( int nIndex ) ;
8687
87- [ DllImport ( "Everything64.dll" , CharSet = CharSet . Unicode ) ]
88+ [ DllImport ( Everything64Dll , CharSet = CharSet . Unicode ) ]
8889 public static extern void Everything_GetResultFullPathNameW ( int nIndex , StringBuilder lpString , int nMaxCount ) ;
8990
90- [ DllImport ( "Everything64.dll" ) ]
91+ [ DllImport ( Everything64Dll ) ]
9192 public static extern void Everything_Reset ( ) ;
93+
94+ [ DllImport ( Everything64Dll ) ]
95+ public static extern void Everything_Cleanup ( ) ;
9296 }
9397}
0 commit comments