#ifndef _NTMMAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtExtendSection routine extends the size of an existing section object.
*
* \param SectionHandle A handle to the section object to extend.
* \param NewSectionSize A pointer to a LARGE_INTEGER that specifies the new section size, in bytes.
* \return NTSTATUS Successful or errant status.
*/
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtExtendSection(
_In_ HANDLE SectionHandle,
_Inout_ PLARGE_INTEGER NewSectionSize
);
View code on GitHub#ifndef _NTZWAPI_H
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwExtendSection(
_In_ HANDLE SectionHandle,
_Inout_ PLARGE_INTEGER NewSectionSize
);
View code on GitHubNo description available.
Must be open with SECTION_EXTEND_SIZE attribute.
If section it's a mapped file, function fails.