Closed pitoriex closed 2 years ago
It was intentionally done this way to give the user freedom to choose how they want to get a handle. There are other ways than just toolhelp to get a handle, and sometimes you might already have one. If you want to contribute a PR to add a handle enumerator helper or something I would review it, but I will not implement this myself.
Hello, I was wondering if there are any plans to add a helper function that registers a hardware breakpoint on all threads at once in the current process. The current way a hardware breakpoint is created with the thread handle parameter looks more like a library-internal function than one that should be used by the end user.
Like, what would be the suggested way of using it? Using CreateToolhelp32Snapshot, Thread32First and Thread32Next to iterate all threads and create a
PLH::HWBreakPointHook
for each thread? That doesn't sound very end user friendly.Thanks for any thoughts!