@@ -192,7 +192,7 @@ public bool WriteRemoteMemory(IntPtr process, IntPtr address, ref byte[] buffer,
192
192
193
193
/// <summary>Opens a file browser dialog and reports the selected file.</summary>
194
194
/// <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 )
196
196
{
197
197
if ( callbackProcess == null )
198
198
{
@@ -207,7 +207,13 @@ public void EnumerateProcesses(Action<Tuple<IntPtr, string>> callbackProcess)
207
207
{
208
208
currentFile = ofd . FileName ;
209
209
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 ) ;
211
217
}
212
218
}
213
219
}
@@ -216,7 +222,7 @@ public void EnumerateProcesses(Action<Tuple<IntPtr, string>> callbackProcess)
216
222
/// <param name="process">The process.</param>
217
223
/// <param name="callbackSection">The callback which gets called for every section.</param>
218
224
/// <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 )
220
226
{
221
227
// Not supported.
222
228
}
0 commit comments