#ifndef _NTRTL_H
/**
* The RtlCreateUserStack routine allocates and initializes a user-mode stack for a new thread.
*
* \param CommittedStackSize The initial size, in bytes, of committed stack. If 0, the default is used.
* \param MaximumStackSize The maximum size, in bytes, of the stack. If 0, the default is used.
* \param ZeroBits The number of high-order address bits that must be zero in the stack's base address. Usually set to 0.
* \param PageSize The system page size, in bytes.
* \param ReserveAlignment The alignment for the reserved stack region.
* \param InitialTeb Pointer to an INITIAL_TEB structure that receives the stack information.
* \return NTSTATUS Successful or errant status.
*/
NTSYSAPI
NTSTATUS
NTAPI
RtlCreateUserStack(
_In_opt_ SIZE_T CommittedStackSize,
_In_opt_ SIZE_T MaximumStackSize,
_In_opt_ ULONG_PTR ZeroBits,
_In_ SIZE_T PageSize,
_In_ ULONG_PTR ReserveAlignment,
_Out_ PINITIAL_TEB InitialTeb
);
View code on GitHubNo description available.