Files
progwrp/ptr.c
computergang 28c76838c9 reupload this
2026-04-10 15:39:36 +02:00

13 lines
359 B
C

#include "progwrp.h"
#include "export.h"
#include "implementations.h"
PVOID WINAPI Implementation_EncodePointer(PVOID Ptr) {
return (PVOID)((ULONG_PTR)Ptr ^ (ULONG_PTR)NtCurrentTeb()->ProcessEnvironmentBlock);
}
PVOID WINAPI Implementation_DecodePointer(PVOID Ptr) {
return (PVOID)((ULONG_PTR)Ptr ^ (ULONG_PTR)NtCurrentTeb()->ProcessEnvironmentBlock);
}