mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 05:00:27 +00:00
- Add CcFastMdlReadWait extern to ntifs.h
- Add FsRtlCompleteRequest macro to ntifs.h - Add LDRP_DRIVER_VERIFYING flag to ldrtypes.h - Add MM_DRIVER_VERIFIER_DATA and DRIVER_SPECIFIED_DRIVER_THUNKS to mmtypes.h - Add MAXLONGLONG to ntdef.h. svn path=/trunk/; revision=24729
This commit is contained in:
parent
c77ef10192
commit
49c35d197f
4 changed files with 53 additions and 1 deletions
|
@ -2006,6 +2006,8 @@ CcInitializeCacheMap (
|
|||
(((PSECTION_OBJECT_POINTERS)(FO)->SectionObjectPointer)->SharedCacheMap != NULL) \
|
||||
)
|
||||
|
||||
extern ULONG CcFastMdlReadWait;
|
||||
|
||||
NTKERNELAPI
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
|
@ -2579,6 +2581,11 @@ FsRtlDoesNameContainWildCards (
|
|||
IN PUNICODE_STRING Name
|
||||
);
|
||||
|
||||
#define FsRtlCompleteRequest(IRP,STATUS) { \
|
||||
(IRP)->IoStatus.Status = (STATUS); \
|
||||
IoCompleteRequest( (IRP), IO_DISK_INCREMENT ); \
|
||||
}
|
||||
|
||||
#define FsRtlEnterFileSystem KeEnterCriticalRegion
|
||||
|
||||
#define FsRtlExitFileSystem KeLeaveCriticalRegion
|
||||
|
|
|
@ -49,6 +49,7 @@ Author:
|
|||
#define LDRP_IMAGE_NOT_AT_BASE 0x00200000
|
||||
#define LDRP_COR_IMAGE 0x00400000
|
||||
#define LDR_COR_OWNS_UNMAP 0x00800000
|
||||
#define LDRP_DRIVER_VERIFYING 0x02000000
|
||||
#define LDRP_REDIRECTED 0x10000000
|
||||
|
||||
//
|
||||
|
|
|
@ -606,6 +606,50 @@ typedef struct _MEMORY_BASIC_INFORMATION
|
|||
ULONG Type;
|
||||
} MEMORY_BASIC_INFORMATION,*PMEMORY_BASIC_INFORMATION;
|
||||
|
||||
//
|
||||
// Driver Verifier Data
|
||||
//
|
||||
typedef struct _MM_DRIVER_VERIFIER_DATA
|
||||
{
|
||||
ULONG Level;
|
||||
ULONG RaiseIrqls;
|
||||
ULONG AcquireSpinLocks;
|
||||
ULONG SynchronizeExecutions;
|
||||
ULONG AllocationsAttempted;
|
||||
ULONG AllocationsSucceeded;
|
||||
ULONG AllocationsSucceededSpecialPool;
|
||||
ULONG AllocationsWithNoTag;
|
||||
ULONG TrimRequests;
|
||||
ULONG Trims;
|
||||
ULONG AllocationsFailed;
|
||||
ULONG AllocationsFailedDeliberately;
|
||||
ULONG Loads;
|
||||
ULONG Unloads;
|
||||
ULONG UnTrackedPool;
|
||||
ULONG UserTrims;
|
||||
ULONG CurrentPagedPoolAllocations;
|
||||
ULONG CurrentNonPagedPoolAllocations;
|
||||
ULONG PeakPagedPoolAllocations;
|
||||
ULONG PeakNonPagedPoolAllocations;
|
||||
ULONG PagedBytes;
|
||||
ULONG NonPagedBytes;
|
||||
ULONG PeakPagedBytes;
|
||||
ULONG PeakNonPagedBytes;
|
||||
ULONG BurstAllocationsFailedDeliberately;
|
||||
ULONG SessionTrims;
|
||||
ULONG Reserved[2];
|
||||
} MM_DRIVER_VERIFIER_DATA, *PMM_DRIVER_VERIFIER_DATA;
|
||||
|
||||
//
|
||||
// Internal Driver Verifier Table Data
|
||||
//
|
||||
typedef struct _DRIVER_SPECIFIED_VERIFIER_THUNKS
|
||||
{
|
||||
LIST_ENTRY ListEntry;
|
||||
PLDR_DATA_TABLE_ENTRY DataTableEntry;
|
||||
ULONG NumberOfThunks;
|
||||
} DRIVER_SPECIFIED_VERIFIER_THUNKS, *PDRIVER_SPECIFIED_VERIFIER_THUNKS;
|
||||
|
||||
//
|
||||
// Default heap size values. For user mode, these values are copied to a new
|
||||
// process's PEB by the kernel in MmCreatePeb. In kernel mode, RtlCreateHeap
|
||||
|
|
|
@ -105,7 +105,7 @@ typedef struct _OBJECT_ATTRIBUTES {
|
|||
#define MAXUCHAR 0xff
|
||||
#define MAXUSHORT 0xffff
|
||||
#define MAXULONG 0xffffffff
|
||||
|
||||
#define MAXLONGLONG (0x7fffffffffffffffLL)
|
||||
#define C_ASSERT(e) extern char __C_ASSERT__[(e)?1:-1]
|
||||
|
||||
#endif /* _NTDEF_H */
|
||||
|
|
Loading…
Reference in a new issue