Closed qmfrederik closed 4 years ago
Kernel32.OpenProcess returns a SafeObjectHandle, so it seems logic for Kernel32.ReadProcessMemory to accept a SafeObjectHandle, too.
Kernel32.OpenProcess
SafeObjectHandle
Kernel32.ReadProcessMemory
Agreed. Let's add an overload for this and add [Obsolete] on the existing one to spread out the breaking change.
[Obsolete]
Kernel32.OpenProcess
returns aSafeObjectHandle
, so it seems logic forKernel32.ReadProcessMemory
to accept aSafeObjectHandle
, too.