@@ -55,14 +55,14 @@ public T GetDelegate<T>()
5555
5656 private delegate void CloseRemoteProcessDelegate ( IntPtr process ) ;
5757
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 ) ;
5959
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 ) ;
6161
62- public delegate void EnumerateProcessCallback ( uint pid , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
62+ public delegate void EnumerateProcessCallback ( int pid , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
6363 private delegate void EnumerateProcessesDelegate ( EnumerateProcessCallback callbackProcess ) ;
6464
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 ) ;
6666 public delegate void EnumerateRemoteModuleCallback ( IntPtr baseAddress , IntPtr regionSize , [ MarshalAs ( UnmanagedType . LPWStr ) ] string modulePath ) ;
6767 private delegate void EnumerateRemoteSectionsAndModulesDelegate ( IntPtr process , EnumerateRemoteSectionCallback callbackSection , EnumerateRemoteModuleCallback callbackModule ) ;
6868
@@ -310,7 +310,7 @@ public void CloseRemoteProcess(IntPtr process)
310310 closeRemoteProcessDelegate ( process ) ;
311311 }
312312
313- public bool ReadRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , uint size )
313+ public bool ReadRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , int size )
314314 {
315315 Contract . Requires ( buffer != null ) ;
316316
@@ -321,7 +321,7 @@ public bool ReadRemoteMemory(IntPtr process, IntPtr address, byte[] buffer, uint
321321 return result ;
322322 }
323323
324- public bool WriteRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , uint size )
324+ public bool WriteRemoteMemory ( IntPtr process , IntPtr address , byte [ ] buffer , int size )
325325 {
326326 Contract . Requires ( buffer != null ) ;
327327
0 commit comments