Difference between revisions of "Help File:FreezeMem"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "==FreezeMem== This function will freeze the memory of a specific address. '''Function Definition''' ''int FreezeMem(ULONG address, int size);'' ;'''address''' :Address to...")
 
m
 
Line 1: Line 1:
 
==FreezeMem==
 
==FreezeMem==
  
This function will freeze the memory of a specific address.
+
This function will freeze the memory of a specific location.
  
 
'''Function Definition'''
 
'''Function Definition'''
Line 11: Line 11:
 
:Size in bytes of the address to freeze.
 
:Size in bytes of the address to freeze.
  
Returns the ''ID'' of the frozen address so you can later unfreeze it.
+
Returns the ''ID'' of the frozen location so you can later unfreeze it.
  
 
;'''Warning'''
 
;'''Warning'''
 
:If the process changes the freeze will still be active. It is recommended in this case, to hook ''OpenProcess'' to watch for changes and unfreeze when a new process is selected.
 
:If the process changes the freeze will still be active. It is recommended in this case, to hook ''OpenProcess'' to watch for changes and unfreeze when a new process is selected.
 +
  
 
* [[Help File:Plugin system|Plugin system]]
 
* [[Help File:Plugin system|Plugin system]]

Latest revision as of 00:51, 30 July 2021

FreezeMem[edit]

This function will freeze the memory of a specific location.

Function Definition

int FreezeMem(ULONG address, int size);
address
Address to freeze.
size
Size in bytes of the address to freeze.

Returns the ID of the frozen location so you can later unfreeze it.

Warning
If the process changes the freeze will still be active. It is recommended in this case, to hook OpenProcess to watch for changes and unfreeze when a new process is selected.