The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.


 WINAPI SetProcessValidCallTargets(
  _In_    HANDLE                hProcess,
  _In_    PVOID                 VirtualAddress,
  _In_    SIZE_T                RegionSize,
  _In_    ULONG                 NumberOfOffsets,
  _Inout_ PCFG_CALL_TARGET_INFO OffsetInformation


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.


Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | UWP apps]


WinBase.h (include Windows.h)