Skip to main content
RtlAddGrowableFunctionTable function

Informs the system of a dynamic function table representing a region of memory containing code.

Syntax


DWORD NTAPI RtlAddGrowableFunctionTable(
  _Out_  PVOID *DynamicTable,
  _In_reads_(MaximumEntryCount)PRUNTIME_FUNCTION FunctionTable,
  _In_   DWORD EntryCount,
  _In_   DWORD MaximumEntryCount,
  _In_   ULONG_PTR RangeBase,
  _In_   ULONG_PTR RangeEnd
);

Parameters

DynamicTable [out]

A pointer to a variable that receives an opaque reference to the newly-added table on success.

FunctionTable

A pointer to a partially-filled array of RUNTIME_FUNCTION entries which provides unwind information for the region of code. The entries in this array must remain sorted in ascending order of the BeginAddress members.

EntryCount [in]

The number of entries currently populated in the function table. This value may be zero.

MaximumEntryCount [in]

The capacity of the function table.

RangeBase [in]

The beginning of the memory range described by the function table.

RangeEnd [in]

The end of the memory range described by the function table.

Return value

This function returns zero on success. (More detail).

The following codes may be returned.Description
ERROR_SUCCESS

The operation succeeded.

ERROR_NOT_ENOUGH_MEMORY

There is not enough memory to complete the operation.

 

Remarks

The function table can grow as code is added to the memory region. The entries in the table must be sorted. This table is used for dispatching exceptions through runtime-generated code and for collecting stack backtraces.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

WinNT.h (include Windows.h)

Library

Ntdll.lib

DLL

Ntdll.dll