22 "FREE",
"DC",
"UNUSED1",
"UNUSED2",
"RGN",
"SURF",
"CLIENTOBJ",
"PATH",
23 "PAL",
"ICMLCS",
"LFONT",
"RFONT",
"PFE",
"PFT",
"ICMCXF",
"SPRITE",
24 "BRUSH",
"UMPD",
"UNUSED4",
"SPACE",
"UNUSED5",
"META",
"EFSTATE",
25 "BMFD",
"VTFD",
"TTFD",
"RC",
"TEMP",
"DRVOBJ",
"DCIOBJ",
"SPOOL",
53 if ((pszNum[0] ==
'0') && ((pszNum[1] ==
'x') || (pszNum[1] ==
'X')))
57 *pulValue =
strtoul(pszNum, &endptr, 16);
59 return (*endptr ==
'\0');
66 DbgPrint(
"GDI KDBG extension.\nAvailable commands:\n"
67 "- help - Displays this screen.\n"
68 "- dumpht [<type>] - Dumps all handles of <type> or lists all types\n"
69 "- handle <handle> - Displays information about a handle\n"
70 "- entry <entry> - Displays an ENTRY, <entry> can be a pointer or index\n"
71 "- baseobject <object> - Displays a BASEOBJECT\n"
73 "- eventlist <object> - Displays the eventlist for an object\n"
83 UCHAR Objt, jReqestedType;
146 DbgPrint(
"Index Handle Type pObject ThreadId cLocks ulRefCount\n");
147 DbgPrint(
"---------------------------------------------------------------\n");
158 Objt = pentry->
Objt & 0x1F;
162 (Objt == jReqestedType))
164 DbgPrint(
"%04lx %p %-9s 0x%p 0x%06lx %-6ld ",
200 usIndex = ulObject & 0xFFFF;
205 pobj = pentry->einfo.pobj;
207 DbgPrint(
"GDI handle=%p, type=%s, index=0x%lx, pentry=%p.\n",
210 DbgPrint(
" ENTRY = {.pobj = %p, ObjectOwner = 0x%lx, FullUnique = 0x%04x,\n"
211 " Objt=0x%02x, Flags = 0x%02x, pUser = 0x%p}\n",
212 pentry->einfo.pobj, pentry->ObjectOwner.ulObj, pentry->FullUnique,
213 pentry->Objt, pentry->
Flags, pentry->pUser);
214 DbgPrint(
" BASEOBJECT = {hHmgr = %p, dwThreadId = 0x%lx,\n"
215 " cExclusiveLock = %ld, BaseFlags = 0x%lx}\n",
223 DbgPrint(
"Coudn't access ENTRY. Probably paged out.\n");
254 DbgPrint(
"Cannot access entry at %p\n", pentry);
260 if (pentry->
Objt != 0)
281#if DBG_ENABLE_EVENT_LOGGING
284KdbCommand_Gdi_eventlist(
char *
argv)
298 pobj = (
POBJ)ulValue;
303 DbgPrint(
"Cannot access BASEOBJECT at %p\n", pobj);
311 for (psle = psleFirst; psle !=
NULL; psle = psle->Next)
314 DbgPrintEvent(pLogEntry);
350#if DBG_ENABLE_EVENT_LOGGING
353 KdbCommand_Gdi_eventlist(
argv[1]);
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
static void cleanup(void)
static VOID KdbCommand_Gdi_entry(char *argv)
static const char * gpszObjectTypes[]
static VOID KdbCommand_Gdi_handle(char *argv)
BOOLEAN KdbIsMemoryValid(PVOID pvBase, ULONG cjSize)
static VOID KdbCommand_Gdi_baseobject(char *argv)
static BOOL KdbGetHexNumber(char *pszNum, ULONG_PTR *pulValue)
static VOID KdbCommand_Gdi_dumpht(ULONG argc, char *argv[])
BOOLEAN NTAPI DbgGdiKdbgCliCallback(IN PCHAR pszCommand, IN ULONG argc, IN PCH argv[])
static VOID KdbCommand_Gdi_help(VOID)
struct _BASEOBJECT * POBJ
static const unsigned RESERVE_ENTRIES_COUNT
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOLEAN NTAPI MmIsAddressValid(IN PVOID VirtualAddress)
_Out_ PKAPC_STATE ApcState
VOID NTAPI KeStackAttachProcess(IN PKPROCESS Process, OUT PRKAPC_STATE ApcState)
VOID NTAPI KeUnstackDetachProcess(IN PRKAPC_STATE ApcState)
union _ENTRY::_OBJECTOWNER ObjectOwner
union _ENTRY::_EINFO einfo
#define CONTAINING_RECORD(address, type, field)
#define ALIGN_DOWN_POINTER_BY(ptr, align)
struct _BASEOBJECT * pobj
#define DBG_ENABLE_EVENT_LOGGING
#define InterlockedPushEntrySList(SListHead, SListEntry)
#define InterlockedFlushSList(SListHead)