reupload this
This commit is contained in:
13
ptr.c
Normal file
13
ptr.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user