Initialize dispatcher header
This commit is contained in:
@@ -99,14 +99,20 @@ typedef struct _M128
|
|||||||
/* Dispatcher object header structure definition */
|
/* Dispatcher object header structure definition */
|
||||||
typedef struct _DISPATCHER_HEADER
|
typedef struct _DISPATCHER_HEADER
|
||||||
{
|
{
|
||||||
UCHAR Type;
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
UCHAR Type;
|
||||||
UCHAR Absolute;
|
UCHAR Absolute;
|
||||||
UCHAR NpxIrql;
|
UCHAR Size;
|
||||||
};
|
union {
|
||||||
UCHAR Inserted;
|
UCHAR Inserted;
|
||||||
BOOLEAN DebugActive;
|
BOOLEAN DebugActive;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
VOLATILE LONG Lock;
|
||||||
|
};
|
||||||
LONG SignalState;
|
LONG SignalState;
|
||||||
LIST_ENTRY WaitListHead;
|
LIST_ENTRY WaitListHead;
|
||||||
} DISPATCHER_HEADER, *PDISPATCHER_HEADER;
|
} DISPATCHER_HEADER, *PDISPATCHER_HEADER;
|
||||||
|
|||||||
@@ -127,6 +127,8 @@ KE::KProcess::InitializeProcess(IN OUT PKPROCESS Process,
|
|||||||
IN BOOLEAN Alignment)
|
IN BOOLEAN Alignment)
|
||||||
{
|
{
|
||||||
/* Initialize process dispatcher header */
|
/* Initialize process dispatcher header */
|
||||||
|
Process->Header.SignalState = 0;
|
||||||
|
Process->Header.Size = sizeof(KPROCESS) / sizeof(LONG);
|
||||||
Process->Header.Type = ProcessObject;
|
Process->Header.Type = ProcessObject;
|
||||||
|
|
||||||
/* Initialize process wait list */
|
/* Initialize process wait list */
|
||||||
|
|||||||
Reference in New Issue
Block a user