Skip to content

Commit 2e3d7ec

Browse files
committed
Unified names.
1 parent fd072c1 commit 2e3d7ec

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

NativeCore/Debugger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void __stdcall HandleDebugEvent(DebugEvent* evt)
157157
ContinueDebugEvent((DWORD)evt->ProcessId, (DWORD)evt->ThreadId, continueStatus);
158158
}
159159

160-
bool __stdcall SetHardwareBreakpoint(RC_Pointer processId, RC_Pointer address, HardwareBreakpointRegister reg, HardwareBreakpointTrigger type, HardwareBreakpointSize size, bool set)
160+
bool __stdcall SetHardwareBreakpoint(RC_Pointer id, RC_Pointer address, HardwareBreakpointRegister reg, HardwareBreakpointTrigger type, HardwareBreakpointSize size, bool set)
161161
{
162162
if (reg == HardwareBreakpointRegister::InvalidRegister)
163163
{
@@ -204,7 +204,7 @@ bool __stdcall SetHardwareBreakpoint(RC_Pointer processId, RC_Pointer address, H
204204
{
205205
do
206206
{
207-
if (pe32.th32OwnerProcessID == (DWORD)processId)
207+
if (pe32.th32OwnerProcessID == (DWORD)id)
208208
{
209209
auto handle = OpenThread(THREAD_SUSPEND_RESUME | THREAD_GET_CONTEXT | THREAD_SET_CONTEXT, FALSE, pe32.th32ThreadID);
210210

NativeCore/NativeCore.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
#include "ReClassNET_Plugin.hpp"
44

55
void __stdcall EnumerateProcesses(EnumerateProcessCallback callbackProcess);
6-
void __stdcall EnumerateRemoteSectionsAndModules(RC_Pointer process, EnumerateRemoteSectionsCallback callbackSection, EnumerateRemoteModulesCallback callbackModule);
6+
void __stdcall EnumerateRemoteSectionsAndModules(RC_Pointer handle, EnumerateRemoteSectionsCallback callbackSection, EnumerateRemoteModulesCallback callbackModule);
77

88
RC_Pointer __stdcall OpenRemoteProcess(RC_Pointer id, ProcessAccess desiredAccess);
99
bool __stdcall IsProcessValid(RC_Pointer handle);
1010
void __stdcall CloseRemoteProcess(RC_Pointer handle);
1111

1212
bool __stdcall ReadRemoteMemory(RC_Pointer handle, RC_Pointer address, RC_Pointer buffer, int offset, int size);
13-
bool __stdcall WriteRemoteMemory(RC_Pointer process, RC_Pointer address, RC_Pointer buffer, int offset, int size);
13+
bool __stdcall WriteRemoteMemory(RC_Pointer handle, RC_Pointer address, RC_Pointer buffer, int offset, int size);
1414

1515
void __stdcall ControlRemoteProcess(RC_Pointer handle, ControlRemoteProcessAction action);
1616

1717
bool __stdcall AttachDebuggerToProcess(RC_Pointer id);
1818
void __stdcall DetachDebuggerFromProcess(RC_Pointer id);
19-
bool __stdcall WaitForDebugEvent(DebugEvent* evt, int timeoutInMilliseconds);
20-
void __stdcall ContinueDebugEvent(DebugEvent* evt);
21-
bool __stdcall SetHardwareBreakpoint(RC_Pointer processId, RC_Pointer address, HardwareBreakpointRegister reg, HardwareBreakpointTrigger type, HardwareBreakpointSize size, bool set);
19+
bool __stdcall AwaitForDebugEvent(DebugEvent* evt, int timeoutInMilliseconds);
20+
void __stdcall HandleDebugEvent(DebugEvent* evt);
21+
bool __stdcall SetHardwareBreakpoint(RC_Pointer id, RC_Pointer address, HardwareBreakpointRegister reg, HardwareBreakpointTrigger type, HardwareBreakpointSize size, bool set);

NativeCore/WriteRemoteMemory.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
#include "NativeCore.hpp"
44

5-
bool __stdcall WriteRemoteMemory(RC_Pointer process, RC_Pointer address, RC_Pointer buffer, int offset, int size)
5+
bool __stdcall WriteRemoteMemory(RC_Pointer handle, RC_Pointer address, RC_Pointer buffer, int offset, int size)
66
{
77
buffer = (RC_Pointer)((uintptr_t)buffer + offset);
88

99
DWORD oldProtect;
10-
if (VirtualProtectEx(process, address, size, PAGE_EXECUTE_READWRITE, &oldProtect))
10+
if (VirtualProtectEx(handle, address, size, PAGE_EXECUTE_READWRITE, &oldProtect))
1111
{
1212
SIZE_T numberOfBytesWritten;
13-
if (WriteProcessMemory(process, address, buffer, size, &numberOfBytesWritten))
13+
if (WriteProcessMemory(handle, address, buffer, size, &numberOfBytesWritten))
1414
{
15-
VirtualProtectEx(process, address, size, oldProtect, nullptr);
15+
VirtualProtectEx(handle, address, size, oldProtect, nullptr);
1616

1717
if (size == numberOfBytesWritten)
1818
{

0 commit comments

Comments
 (0)