summaryrefslogtreecommitdiff
path: root/attache/EnforceFilter.h
blob: eaa1424a08f1844d22390f4593cc6753dd9d3fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _ENFORCE_FILTER_INC
#define _ENFORCE_FILTER_INC

////////////////////////////////////////////////////////////////////////////////
// Function declarations
//

	// EnforceFilter function 
	// 
	// If bEnforce is "true", the function overwrites the beginning of 
	// SetUnhandledExceptionFilter function with a patch which rejects  
	// all subsequent attempts to register a filter.
	// If bEnforce is "false", the original functionality of 
	// SetUnhandledExceptionFilter is restored. 
	// 
bool EnforceFilter( bool bEnforce );

	// WriteMemory function 
	// 
	// This function writes the specified sequence of bytes from 
	// the source memory into the target memory. In addition, the function 
	// modifies virtual memory protection attributes of the target memory page 
	// to make sure that it is writeable.
	// 
bool WriteMemory( BYTE* pTarget, const BYTE* pSource, DWORD Size );

#endif