@@ -192,7 +192,7 @@ public bool WriteRemoteMemory(IntPtr process, IntPtr address, ref byte[] buffer,
192192
193193 /// <summary>Opens a file browser dialog and reports the selected file.</summary>
194194 /// <param name="callbackProcess">The callback which gets called for the selected file.</param>
195- public void EnumerateProcesses ( Action < Tuple < IntPtr , string > > callbackProcess )
195+ public void EnumerateProcesses ( EnumerateProcessCallback callbackProcess )
196196 {
197197 if ( callbackProcess == null )
198198 {
@@ -207,7 +207,13 @@ public void EnumerateProcesses(Action<Tuple<IntPtr, string>> callbackProcess)
207207 {
208208 currentFile = ofd . FileName ;
209209
210- callbackProcess ( Tuple . Create ( ( IntPtr ) currentFile . GetHashCode ( ) , currentFile ) ) ;
210+ var data = new EnumerateProcessData
211+ {
212+ Id = ( IntPtr ) currentFile . GetHashCode ( ) ,
213+ Path = currentFile
214+ } ;
215+
216+ callbackProcess ( ref data ) ;
211217 }
212218 }
213219 }
@@ -216,7 +222,7 @@ public void EnumerateProcesses(Action<Tuple<IntPtr, string>> callbackProcess)
216222 /// <param name="process">The process.</param>
217223 /// <param name="callbackSection">The callback which gets called for every section.</param>
218224 /// <param name="callbackModule">The callback which gets called for every module.</param>
219- public void EnumerateRemoteSectionsAndModules ( IntPtr process , Action < Section > callbackSection , Action < Module > callbackModule )
225+ public void EnumerateRemoteSectionsAndModules ( IntPtr process , EnumerateRemoteSectionCallback callbackSection , EnumerateRemoteModuleCallback callbackModule )
220226 {
221227 // Not supported.
222228 }
0 commit comments