about summary refs log tree commit diff stats
path: root/src/include/pe_tools.h
blob: d52f1438d4fd3d62002b93c98082dee6b9fdaf69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __PE_TOOLS_H__
#define __PE_TOOLS_H__

// Parse the PE file and extract the volatile metadata, which contains volatile opcode entries and volatile ranges.
void ParseVolatileMetadata(char* filename, void* addr);

// Check if a given address is contained within the volatile ranges.
int VolatileRangesContains(uintptr_t addr);

// Check if a given address is contained within the volatile opcode entries.
int VolatileOpcodesHas(uintptr_t addr);

#endif // __PE_TOOLS_H__