VirtualProtectEx(processhandle, pointer(realaddress),1,PAGE_EXECUTE_READWRITE,original);
writeprocessmemory(processhandle,pointer(realaddress),text,length(newvaluest),write);
if addzero then writeprocessmemory(processhandle,pointer(realaddress+length(newvaluest)),addr(newvalue1),1,write);
VirtualProtectEx(processhandle, pointer(realaddress),1,original,write);