mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[*] syntax
git-svn-id: https://pykd.svn.codeplex.com/svn@59108 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
a256bf682d
commit
5968cf04a1
@ -15,7 +15,6 @@ from pykd import *
|
|||||||
def getTypeWin7(p):
|
def getTypeWin7(p):
|
||||||
"""
|
"""
|
||||||
Get object header by object pointer
|
Get object header by object pointer
|
||||||
|
|
||||||
Implementation for Win7+
|
Implementation for Win7+
|
||||||
"""
|
"""
|
||||||
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
||||||
@ -25,7 +24,6 @@ def getTypeWin7(p):
|
|||||||
def getTypeLegacy(p):
|
def getTypeLegacy(p):
|
||||||
"""
|
"""
|
||||||
Get object header by object pointer
|
Get object header by object pointer
|
||||||
|
|
||||||
Implementation for before Win7
|
Implementation for before Win7
|
||||||
"""
|
"""
|
||||||
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
pHeader = containingRecord(p, "nt", "_OBJECT_HEADER", "Body")
|
||||||
@ -59,7 +57,6 @@ def getListByHandleTable(pHandleTable, pType=0, bContainHeaders=True):
|
|||||||
"""
|
"""
|
||||||
Query object pointer by handle entry from handle table
|
Query object pointer by handle entry from handle table
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if (0 == hEntry):
|
if (0 == hEntry):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@ -122,8 +119,6 @@ def getListByHandleTable(pHandleTable, pType=0, bContainHeaders=True):
|
|||||||
|
|
||||||
return lstObjects
|
return lstObjects
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pHandleTable = typedVar("nt", "_HANDLE_TABLE", pHandleTable)
|
pHandleTable = typedVar("nt", "_HANDLE_TABLE", pHandleTable)
|
||||||
nMaxHandleIndex = pHandleTable.NextHandleNeedingPool & 0xFFFFFFFF
|
nMaxHandleIndex = pHandleTable.NextHandleNeedingPool & 0xFFFFFFFF
|
||||||
nTableLevel = (pHandleTable.TableCode & 3)
|
nTableLevel = (pHandleTable.TableCode & 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user