LM_PatternScan
Searches for a specific pattern in memory based on a given mask in the current process.The pattern to be searched for in memory.
The pattern mask used for scanning memory. It is used to specify which bytes in the pattern should be matched against the memory content. The mask can contain characters such as
? which act as wildcards, allowing any byte to be matched. You can also use x to have an exact match.The starting memory address where the scanning operation will begin. The function will scan the memory starting from this address to find the pattern match.
The size of the memory region to scan starting from the specified
address. It determines the range within which the function will search for the specified pattern based on the provided pattern and mask.Returns
Returns the memory address where a match for the given pattern and mask is found within the specified scan size starting from the provided address. If no match is found or if an error occurs, returnsLM_ADDRESS_BAD.
LM_PatternScanEx
Searches for a specific pattern in memory in a remote process based on a mask.The process whose memory will be scanned.
The pattern to be searched for in memory.
The pattern mask used for scanning memory. It is used to specify which bytes in the pattern should be matched against the memory content. The mask can contain characters such as
? which act as wildcards, allowing any byte to be matched. You can also use x to have an exact match.The starting memory address where the scanning operation will begin. The function will scan the memory starting from this address to find the pattern match.
The size of the memory region to scan starting from the specified
address. It determines the range within which the function will search for the specified pattern based on the provided pattern and mask.Returns
Returns the memory address where a match for the given pattern and mask is found within the specified scan size starting from the provided address. If no match is found or if an error occurs, returnsLM_ADDRESS_BAD.
Example (C)
x) and the last 2 bytes can be anything (?).