SetProcessValidCallTargets function
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Provides CFG with a list of valid indirect call targets and specifies whether they should be marked valid or not. The valid call target information is provided as a list of offsets relative to a virtual memory range (start and size of the range). The call targets specified should be 16-byte aligned and in ascending order.
Syntax
WINAPI SetProcessValidCallTargets( _In_ HANDLE hProcess, _In_ PVOID VirtualAddress, _In_ SIZE_T RegionSize, _In_ ULONG NumberOfOffsets, _Inout_ PCFG_CALL_TARGET_INFO OffsetInformation );
Parameters
- hProcess [in]
-
The handle to the target process.
- VirtualAddress [in]
-
The start of the virtual memory region whose call targets are being marked valid.
- RegionSize [in]
-
The size of the virtual memory region.
- NumberOfOffsets [in]
-
The number of offsets relative to the virtual memory ranges.
- OffsetInformation [in, out]
-
A list of offsets and flags relative to the virtual memory ranges.
Return value
TRUE if the operation was successful; otherwise, FALSE. To retrieve error values for this function, call GetLastError.
Requirements
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
|
DLL |
|