mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Add Object Header Quota structure/define
- Give Files/Devices a parse routine and currently stubplement it for debugging purposes and trying to figure out a way to kill the IopCreateFile hack. - Implement ObpChargeQuotaForObject. Using a memory breakpoint in WinDBG I've finally found where the OB_FLAG_CREATE_INFO flag gets masked out. Also attempted a very naive quota charging implementation, but it's a guess and probably wrong (but at least it does...something.) svn path=/trunk/; revision=22287
This commit is contained in:
@@ -98,6 +98,10 @@ Author:
|
||||
((POBJECT_HEADER_HANDLE_INFO)(!(h)->HandleInfoOffset ? \
|
||||
NULL: ((PCHAR)(h) - (h)->HandleInfoOffset)))
|
||||
|
||||
#define OBJECT_HEADER_TO_QUOTA_INFO(h) \
|
||||
((POBJECT_HEADER_QUOTA_INFO)(!(h)->QuotaInfoOffset ? \
|
||||
NULL: ((PCHAR)(h) - (h)->QuotaInfoOffset)))
|
||||
|
||||
#define OBJECT_HEADER_TO_CREATOR_INFO(h) \
|
||||
((POBJECT_HEADER_CREATOR_INFO)(!((h)->Flags & \
|
||||
OB_FLAG_CREATOR_INFO) ? NULL: ((PCHAR)(h) - \
|
||||
@@ -409,6 +413,14 @@ typedef struct _OBJECT_HEADER_CREATOR_INFO
|
||||
USHORT Reserved;
|
||||
} OBJECT_HEADER_CREATOR_INFO, *POBJECT_HEADER_CREATOR_INFO;
|
||||
|
||||
typedef struct _OBJECT_HEADER_QUOTA_INFO
|
||||
{
|
||||
ULONG PagedPoolCharge;
|
||||
ULONG NonPagedPoolCharge;
|
||||
ULONG SecurityDescriptorCharge;
|
||||
PEPROCESS ExclusiveProcess;
|
||||
} OBJECT_HEADER_QUOTA_INFO, *POBJECT_HEADER_QUOTA_INFO;
|
||||
|
||||
//
|
||||
// Object Header
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user