@@ -55,14 +55,14 @@ public T GetDelegate<T>()
55
55
56
56
private delegate void CloseRemoteProcessDelegate ( IntPtr process ) ;
57
57
58
- private delegate bool ReadRemoteMemoryDelegate ( IntPtr process , IntPtr address , IntPtr buffer , uint size ) ;
58
+ private delegate bool ReadRemoteMemoryDelegate ( IntPtr process , IntPtr address , IntPtr buffer , int size ) ;
59
59
60
- private delegate bool WriteRemoteMemoryDelegate ( IntPtr process , IntPtr address , IntPtr buffer , uint size ) ;
60
+ private delegate bool WriteRemoteMemoryDelegate ( IntPtr process , IntPtr address , IntPtr buffer , int size ) ;
61
61
62
- public delegate void EnumerateProcessCallback ( uint pid , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
62
+ public delegate void EnumerateProcessCallback ( int pid , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
63
63
private delegate void EnumerateProcessesDelegate ( EnumerateProcessCallback callbackProcess ) ;
64
64
65
- public delegate void EnumerateRemoteSectionCallback ( IntPtr baseAddress , IntPtr regionSize , [ MarshalAs ( UnmanagedType . LPStr ) ] string name , NativeMethods . StateEnum state , NativeMethods . AllocationProtectEnum protection , NativeMethods . TypeEnum type , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
65
+ public delegate void EnumerateRemoteSectionCallback ( IntPtr baseAddress , IntPtr regionSize , [ MarshalAs ( UnmanagedType . LPWStr ) ] string name , NativeMethods . StateEnum state , NativeMethods . AllocationProtectEnum protection , NativeMethods . TypeEnum type , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
66
66
public delegate void EnumerateRemoteModuleCallback ( IntPtr baseAddress , IntPtr regionSize , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
67
67
private delegate void EnumerateRemoteSectionsAndModulesDelegate ( IntPtr process , EnumerateRemoteSectionCallback callbackSection , EnumerateRemoteModuleCallback callbackModule ) ;
68
68
@@ -310,7 +310,7 @@ public void CloseRemoteProcess(IntPtr process)
310
310
closeRemoteProcessDelegate ( process ) ;
311
311
}
312
312
313
- public bool ReadRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , uint size )
313
+ public bool ReadRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , int size )
314
314
{
315
315
Contract . Requires ( buffer != null ) ;
316
316
@@ -321,7 +321,7 @@ public bool ReadRemoteMemory(IntPtr process, IntPtr address, byte[] buffer, uint
321
321
return result ;
322
322
}
323
323
324
- public bool WriteRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , uint size )
324
+ public bool WriteRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , int size )
325
325
{
326
326
Contract . Requires ( buffer != null ) ;
327
327
0 commit comments