Update include header and update waitreason list.

svn path=/trunk/; revision=15477
This commit is contained in:
James Tabor 2005-05-23 17:13:23 +00:00
parent ab215aa2bf
commit 78d9f19627

View file

@ -23,8 +23,7 @@
*/ */
#include <windows.h> #include <windows.h>
/* NOTE: W32API ddk/ntapi.h header has wrong definition of SYSTEM_PROCESSES. */ #include <ddk/ntapi.h>
#include <ntos/types.h>
// x00000000 00000000 000:00:00 000:00:00 () // x00000000 00000000 000:00:00 000:00:00 ()
@ -48,38 +47,46 @@ struct status {
{-1," ? "} {-1," ? "}
}; };
struct waitres { struct waitres {
DWORD state; DWORD state;
char desc[11]; char desc[17];
} waitreason[28 + 1] = { } waitreason[35 + 1] = {
{0, "Executive "}, {0, "Executive "},
{1, "FreePage "}, {1, "FreePage "},
{2, "PageIn "}, {2, "PageIn "},
{3, "PoolAlloc "}, {3, "PoolAllocation "},
{4, "DelayExec "}, {4, "DelayExecution "},
{5, "Suspended "}, {5, "Suspended "},
{6, "UserReq "}, {6, "UserRequest "},
{7, "WrExecutive "}, {7, "WrExecutive "},
{8, "WrFreePage "}, {8, "WrFreePage "},
{9, "WrPageIn "}, {9, "WrPageIn "},
{10,"WrPoolAlloc"}, {10,"WrPoolAllocation "},
{11,"WrDelayExec"}, {11,"WrDelayExecution "},
{12,"WrSuspended "}, {12,"WrSuspended "},
{13,"WrUserReq "}, {13,"WrUserRequest "},
{14,"WrEventPair "}, {14,"WrEventPair "},
{15,"WrQueue "}, {15,"WrQueue "},
{16,"WrLpcRec "}, {16,"WrLpcReceive "},
{17,"WrLpcReply "}, {17,"WrLpcReply "},
{18,"WrVirtualMm"}, {18,"WrVirtualMemory "},
{19,"WrPageOut "}, {19,"WrPageOut "},
{20,"WrRendez "}, {20,"WrRendezvous "},
{21,"Spare1 "}, {21,"Spare2 "},
{22,"Spare2 "}, {22,"WrGuardedMutex "},
{23,"Spare3 "}, {23,"Spare4 "},
{24,"Spare4 "}, {24,"Spare5 "},
{25,"Spare5 "}, {25,"Spare6 "},
{26,"Spare6 "}, {26,"WrKernel "},
{27,"WrKernel "}, {27,"WrResource "},
{28,"WrPushLock "},
{29,"WrMutex "},
{30,"WrQuantumEnd "},
{31,"WrDispatchInt "},
{32,"WrPreempted "},
{33,"WrYieldExecution "},
{34,"MaximumWaitReason"},
{-1," ? "} {-1," ? "}
}; };