VirtualBox

Changeset 96844 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
Sep 23, 2022 1:28:25 PM (2 years ago)
Author:
vboxsync
Message:

iprt/nt/nt.h: Correction to OBJECT_INFORMATION_CLASS and added associated OBJECT_TYPES_INFORMATION structure. bugref:10294

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r96597 r96844  
    28742874typedef OBJECT_HANDLE_FLAG_INFORMATION *POBJECT_HANDLE_FLAG_INFORMATION;
    28752875
     2876/**
     2877 * Returned via ObjectTypesInformation, see also OBJECT_TYPES_INFORMATION.
     2878 * The next structure address is calculate:
     2879 *   (uintptr_t)Name.Buffer + RT_ALIGN_32(Name.MaximumLength, sizeof(uintptr_t))
     2880 */
     2881typedef struct _OBJECT_TYPE_INFORMATION
     2882{                                           /*   64-bit offset */
     2883    UNICODE_STRING TypeName;                /**< 0x00 */
     2884    ULONG TotalNumberOfObjects;             /**< 0x10 */
     2885    ULONG TotalNumberOfHandles;             /**< 0x14 */
     2886    ULONG TotalPagedPoolUsage;              /**< 0x18 - not set by W10 19044 */
     2887    ULONG TotalNonPagedPoolUsage;           /**< 0x1c - not set by W10 19044 */
     2888    ULONG TotalNamePoolUsage;               /**< 0x20 - not set by W10 19044 */
     2889    ULONG TotalHandleTableUsage;            /**< 0x24 - not set by W10 19044  */
     2890    ULONG HighWaterNumberOfObjects;         /**< 0x28  */
     2891    ULONG HighWaterNumberOfHandles;         /**< 0x2c  */
     2892    ULONG HighWaterPagedPoolUsage;          /**< 0x30 - not set by W10 19044 */
     2893    ULONG HighWaterNonPagedPoolUsage;       /**< 0x34 - not set by W10 19044 */
     2894    ULONG HighWaterNamePoolUsage;           /**< 0x38 - not set by W10 19044 */
     2895    ULONG HighWaterHandleTableUsage;        /**< 0x3c - not set by W10 19044  */
     2896    ULONG InvalidAttributes;                /**< 0x40 */
     2897    GENERIC_MAPPING GenericMapping;         /**< 0x44 */
     2898    ULONG ValidAccessMask;                  /**< 0x54 */
     2899    BOOLEAN SecurityRequired;               /**< 0x58 */
     2900    BOOLEAN MaintainHandleCount;            /**< 0x59 */
     2901    UCHAR TypeIndex;                        /**< 0x5a */
     2902    UCHAR ReservedZero;                     /**< 0x5b */
     2903    ULONG PoolType;                         /**< 0x5c */
     2904    ULONG DefaultPagedPoolCharge;           /**< 0x60 - not set by W10 19044 */
     2905    ULONG DefaultNonPagedPoolCharge;        /**< 0x64 - not set by W10 19044 */
     2906    /* The name string follows after the structure. */
     2907} OBJECT_TYPE_INFORMATION;
     2908AssertCompileSize(OBJECT_TYPE_INFORMATION, sizeof(UNICODE_STRING) + 0x58);
     2909typedef _OBJECT_TYPE_INFORMATION *POBJECT_TYPE_INFORMATION;
     2910
     2911/** Returned via ObjectTypesInformation. */
     2912typedef struct _OBJECT_TYPES_INFORMATION
     2913{
     2914    ULONG NumberOfTypes;
     2915    OBJECT_TYPE_INFORMATION FirstType;
     2916} OBJECT_TYPES_INFORMATION;
     2917typedef OBJECT_TYPES_INFORMATION *POBJECT_TYPES_INFORMATION;
     2918
    28762919typedef enum _OBJECT_INFORMATION_CLASS
    28772920{
     
    28792922    ObjectNameInformation,
    28802923    ObjectTypeInformation,
    2881     ObjectAllInformation,
     2924    ObjectTypesInformation,
    28822925    ObjectHandleFlagInformation,
    28832926    ObjectSessionInformation,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette