Hello, I would like to know how to create a hardware breakpoint similar to Cheat engine. with an external application (DEBUGGER)
In my code I only have a stop which is created at the opening of the application. I would like to do it on a breakpoint, can someone help me ?

Exemple : https://imgur.com/a/p6uR16v


Code:
#include <windows.h>
#include <TlHelp32.h>
DWORD get_process_id_by_name(const char* process_name){
HANDLE handle = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL);
PROCESSENTRY32 entry;
if(!Process32First(handle, &entry)){
return 0;
}do{
if (!strcmp(entry.szExeFile, process_name)){
CloseHandle(handle);
return entry.th32ProcessID;
	}    
}
while(Process32Next(handle, &entry));
CloseHandle(handle);
return 0;
}
void halt_process(DWORD process_id){
using NtSuspendProcess = LONG(NTAPI*)(HANDLE);
HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, false, process_id);
NtSuspendProcess nt_suspend_process = reinterpret_cast<NtSuspendProcess>(GetProcAddress(GetModuleHandle("ntdll"), "NtSuspendProcess"));
nt_suspend_process(handle);
CloseHandle(handle);
}







int main(int argc, char** argv){
DWORD process_id = get_process_id_by_name("Notepad.exe");
halt_process(process_id);



}
system("pause");
return 0;
}