2003-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/ddk/ntifs.h (KeInsertQueueApc): Make return type BOOLEAN. Name parameter 4 PriorityBoost and make it of type KPRIORITY. * include/ddk/winddk.h (_KPCR): Put IDT field on next line. * include/ddk/winddk.h (_IO_STATUS_BLOCK, _IRP, _OWNER_ENTRY, _ERESOURCE, _IMAGE_INFO, _CREATE_DISK, _DISK_SIGNATURE, _KPCR_TIB): Apply _ANONYMOUS_UNION to anonymous unions and _ANONYMOUS_STRUCT to anonymous structs.
This commit is contained in:
parent
9e8ac0ae35
commit
8330615ded
@ -1,3 +1,14 @@
|
|||||||
|
2003-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/ddk/ntifs.h (KeInsertQueueApc): Make return type
|
||||||
|
BOOLEAN. Name parameter 4 PriorityBoost and make it of type
|
||||||
|
KPRIORITY.
|
||||||
|
* include/ddk/winddk.h (_KPCR): Put IDT field on next line.
|
||||||
|
* include/ddk/winddk.h (_IO_STATUS_BLOCK, _IRP, _OWNER_ENTRY,
|
||||||
|
_ERESOURCE, _IMAGE_INFO, _CREATE_DISK, _DISK_SIGNATURE, _KPCR_TIB):
|
||||||
|
Apply _ANONYMOUS_UNION to anonymous unions and _ANONYMOUS_STRUCT
|
||||||
|
to anonymous structs.
|
||||||
|
|
||||||
2003-07-12 Danny Smith <dannysmith@users.sourceforge.net>
|
2003-07-12 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
* include/winnt.h (PVOID): Move to before HANDLE typedef.
|
* include/winnt.h (PVOID): Move to before HANDLE typedef.
|
||||||
|
@ -3099,13 +3099,13 @@ KeInsertQueue (
|
|||||||
);
|
);
|
||||||
|
|
||||||
NTKERNELAPI
|
NTKERNELAPI
|
||||||
VOID
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
KeInsertQueueApc (
|
KeInsertQueueApc (
|
||||||
IN PKAPC Apc,
|
IN PKAPC Apc,
|
||||||
IN PVOID SystemArgument1,
|
IN PVOID SystemArgument1,
|
||||||
IN PVOID SystemArgument2,
|
IN PVOID SystemArgument2,
|
||||||
UCHAR Unknown
|
IN KPRIORITY PriorityBoost
|
||||||
);
|
);
|
||||||
|
|
||||||
NTKERNELAPI
|
NTKERNELAPI
|
||||||
|
@ -748,10 +748,10 @@ typedef VOID DDKAPI
|
|||||||
IN ULONG Reserved);
|
IN ULONG Reserved);
|
||||||
|
|
||||||
typedef struct _IO_STATUS_BLOCK {
|
typedef struct _IO_STATUS_BLOCK {
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PVOID Pointer;
|
PVOID Pointer;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
ULONG_PTR Information;
|
ULONG_PTR Information;
|
||||||
} IO_STATUS_BLOCK;
|
} IO_STATUS_BLOCK;
|
||||||
|
|
||||||
@ -958,21 +958,21 @@ typedef struct _IRP {
|
|||||||
PVOID UserBuffer;
|
PVOID UserBuffer;
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
KDEVICE_QUEUE_ENTRY DeviceQueueEntry;
|
KDEVICE_QUEUE_ENTRY DeviceQueueEntry;
|
||||||
struct {
|
_ANONYMOUS_STRUCT struct {
|
||||||
PVOID DriverContext[4];
|
PVOID DriverContext[4];
|
||||||
};
|
} DUMMYSTRUCTNAME;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
PETHREAD Thread;
|
PETHREAD Thread;
|
||||||
PCHAR AuxiliaryBuffer;
|
PCHAR AuxiliaryBuffer;
|
||||||
struct {
|
_ANONYMOUS_STRUCT struct {
|
||||||
LIST_ENTRY ListEntry;
|
LIST_ENTRY ListEntry;
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
struct _IO_STACK_LOCATION *CurrentStackLocation;
|
struct _IO_STACK_LOCATION *CurrentStackLocation;
|
||||||
ULONG PacketType;
|
ULONG PacketType;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
};
|
} DUMMYSTRUCTNAME;
|
||||||
struct _FILE_OBJECT *OriginalFileObject;
|
struct _FILE_OBJECT *OriginalFileObject;
|
||||||
} Overlay;
|
} Overlay;
|
||||||
KAPC Apc;
|
KAPC Apc;
|
||||||
@ -2003,10 +2003,10 @@ typedef ERESOURCE_THREAD *PERESOURCE_THREAD;
|
|||||||
|
|
||||||
typedef struct _OWNER_ENTRY {
|
typedef struct _OWNER_ENTRY {
|
||||||
ERESOURCE_THREAD OwnerThread;
|
ERESOURCE_THREAD OwnerThread;
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
LONG OwnerCount;
|
LONG OwnerCount;
|
||||||
ULONG TableSize;
|
ULONG TableSize;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
} OWNER_ENTRY, *POWNER_ENTRY;
|
} OWNER_ENTRY, *POWNER_ENTRY;
|
||||||
|
|
||||||
/* ERESOURCE.Flag */
|
/* ERESOURCE.Flag */
|
||||||
@ -2028,10 +2028,10 @@ typedef struct _ERESOURCE {
|
|||||||
ULONG ContentionCount;
|
ULONG ContentionCount;
|
||||||
USHORT NumberOfSharedWaiters;
|
USHORT NumberOfSharedWaiters;
|
||||||
USHORT NumberOfExclusiveWaiters;
|
USHORT NumberOfExclusiveWaiters;
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
PVOID Address;
|
PVOID Address;
|
||||||
ULONG_PTR CreatorBackTraceIndex;
|
ULONG_PTR CreatorBackTraceIndex;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
KSPIN_LOCK SpinLock;
|
KSPIN_LOCK SpinLock;
|
||||||
} ERESOURCE, *PERESOURCE;
|
} ERESOURCE, *PERESOURCE;
|
||||||
|
|
||||||
@ -3380,15 +3380,15 @@ typedef VOID DDKAPI
|
|||||||
IN BOOLEAN Create);
|
IN BOOLEAN Create);
|
||||||
|
|
||||||
typedef struct _IMAGE_INFO {
|
typedef struct _IMAGE_INFO {
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
ULONG Properties;
|
ULONG Properties;
|
||||||
struct {
|
_ANONYMOUS_STRUCT struct {
|
||||||
ULONG ImageAddressingMode : 8;
|
ULONG ImageAddressingMode : 8;
|
||||||
ULONG SystemModeImage : 1;
|
ULONG SystemModeImage : 1;
|
||||||
ULONG ImageMappedToAllPids : 1;
|
ULONG ImageMappedToAllPids : 1;
|
||||||
ULONG Reserved : 22;
|
ULONG Reserved : 22;
|
||||||
};
|
} DUMMYSTRUCTNAME;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
PVOID ImageBase;
|
PVOID ImageBase;
|
||||||
ULONG ImageSelector;
|
ULONG ImageSelector;
|
||||||
SIZE_T ImageSize;
|
SIZE_T ImageSize;
|
||||||
@ -3516,15 +3516,15 @@ typedef struct _CREATE_DISK_GPT {
|
|||||||
|
|
||||||
typedef struct _CREATE_DISK {
|
typedef struct _CREATE_DISK {
|
||||||
PARTITION_STYLE PartitionStyle;
|
PARTITION_STYLE PartitionStyle;
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
CREATE_DISK_MBR Mbr;
|
CREATE_DISK_MBR Mbr;
|
||||||
CREATE_DISK_GPT Gpt;
|
CREATE_DISK_GPT Gpt;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
} CREATE_DISK, *PCREATE_DISK;
|
} CREATE_DISK, *PCREATE_DISK;
|
||||||
|
|
||||||
typedef struct _DISK_SIGNATURE {
|
typedef struct _DISK_SIGNATURE {
|
||||||
ULONG PartitionStyle;
|
ULONG PartitionStyle;
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
struct {
|
struct {
|
||||||
ULONG Signature;
|
ULONG Signature;
|
||||||
ULONG CheckSum;
|
ULONG CheckSum;
|
||||||
@ -3532,7 +3532,7 @@ typedef struct _DISK_SIGNATURE {
|
|||||||
struct {
|
struct {
|
||||||
GUID DiskId;
|
GUID DiskId;
|
||||||
} Gpt;
|
} Gpt;
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
} DISK_SIGNATURE, *PDISK_SIGNATURE;
|
} DISK_SIGNATURE, *PDISK_SIGNATURE;
|
||||||
|
|
||||||
typedef VOID DDKFASTAPI
|
typedef VOID DDKFASTAPI
|
||||||
@ -3671,10 +3671,10 @@ typedef struct _KPCR_TIB {
|
|||||||
PVOID StackBase; /* 04 */
|
PVOID StackBase; /* 04 */
|
||||||
PVOID StackLimit; /* 08 */
|
PVOID StackLimit; /* 08 */
|
||||||
PVOID SubSystemTib; /* 0C */
|
PVOID SubSystemTib; /* 0C */
|
||||||
union {
|
_ANONYMOUS_UNION union {
|
||||||
PVOID FiberData; /* 10 */
|
PVOID FiberData; /* 10 */
|
||||||
DWORD Version; /* 10 */
|
DWORD Version; /* 10 */
|
||||||
};
|
} DUMMYUNIONNAME;
|
||||||
PVOID ArbitraryUserPointer; /* 14 */
|
PVOID ArbitraryUserPointer; /* 14 */
|
||||||
} KPCR_TIB, *PKPCR_TIB; /* 18 */
|
} KPCR_TIB, *PKPCR_TIB; /* 18 */
|
||||||
|
|
||||||
@ -3689,7 +3689,8 @@ typedef struct _KPCR {
|
|||||||
ULONG IRR; /* 24 */
|
ULONG IRR; /* 24 */
|
||||||
ULONG IrrActive; /* 28 */
|
ULONG IrrActive; /* 28 */
|
||||||
ULONG IDR; /* 2C */
|
ULONG IDR; /* 2C */
|
||||||
PVOID KdVersionBlock; /* 30 */ PUSHORT IDT; /* 34 */
|
PVOID KdVersionBlock; /* 30 */
|
||||||
|
PUSHORT IDT; /* 34 */
|
||||||
PUSHORT GDT; /* 38 */
|
PUSHORT GDT; /* 38 */
|
||||||
struct _KTSS *TSS; /* 3C */
|
struct _KTSS *TSS; /* 3C */
|
||||||
USHORT MajorVersion; /* 40 */
|
USHORT MajorVersion; /* 40 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user