Some things in libmem are not properly named. For example, LM_GetProcessIdEx. It should be something like LM_FindProcessId, since it has no guarantee that it will be got or not - on the other side LM_GetProcessId is always going to succeed by returning the current process ID.
Some things in libmem are not properly named. For example,
LM_GetProcessIdEx
. It should be something likeLM_FindProcessId
, since it has no guarantee that it will be got or not - on the other sideLM_GetProcessId
is always going to succeed by returning the current process ID.