ReactOS Icon

 ReactOS Tutorials (Documentation)

 PspSetLdtSize function

 << Go Back

 << Home Page



 🢂 PspSetLdtSize

   Description

Sets the Local Descriptor Table (LDT) size of a Executive process object.

   Internals & Parameters

NTSTATUS
NTAPI
PspSetLdtSize(
   IN PEPROCESS Process,
   IN PROCESS_LDT_SIZE LdtSize,
   IN ULONG InformationLength)
      

Process is a pointer to a Executive process (EPROCESS). LdtSize is the Local Descriptor Table (LDT) size pointed by its particular structure -- PROCESS_LDT_SIZE. InformationLength is the length size, in bytes, pointed by LdtSize parameter. The function is internally called by NtSetInformationProess() when ProcessLdtSize information class is invoked. The function returns STATUS_SUCCESS if the size of LDT of a process has been set. Otherwise the function will return STATUS_INFO_LENGTH_MISMATCH if the information length size doesn't match with the actual information parameter argument, LdtSize, STATUS_INVALID_LDT_SIZE or STATUS_NO_LDT if the given process doesn't have a LDT.

   Called Functions

         - _SEH_prolog
         - KeWaitForSingleObject
         - KeReleaseMutex (called 2 times)
         - PspCreateLdt
         - Ke386SetLdtProcess
         - ExFreePoolWithTag
         - PsReturnProcessNonPagedPoolQuota
         - _SEH_epilog