Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. GenTable.c
  5. Abstract:
  6. WinDbg Extension Api for walking RtlGenericTable structures
  7. Contains no direct ! entry points, but has makes it possible to
  8. enumerate through generic tables. The standard Rtl functions
  9. cannot be used by debugger extensions because they dereference
  10. pointers to data on the machine being debugged. The function
  11. KdEnumerateGenericTableWithoutSplaying implemented in this
  12. module can be used within kernel debugger extensions. The
  13. enumeration function RtlEnumerateGenericTable has no parallel
  14. in this module, since splaying the tree is an intrusive operation,
  15. and debuggers should try not to be intrusive.
  16. Author:
  17. Keith Kaplan [KeithKa] 09-May-96
  18. Environment:
  19. User Mode.
  20. Revision History:
  21. --*/
  22. PRTL_SPLAY_LINKS
  23. KdParent (
  24. IN PRTL_SPLAY_LINKS pLinks
  25. );
  26. PRTL_SPLAY_LINKS
  27. KdLeftChild (
  28. IN PRTL_SPLAY_LINKS pLinks
  29. );
  30. PRTL_SPLAY_LINKS
  31. KdRightChild (
  32. IN PRTL_SPLAY_LINKS pLinks
  33. );
  34. BOOLEAN
  35. KdIsLeftChild (
  36. IN PRTL_SPLAY_LINKS Links
  37. );
  38. BOOLEAN
  39. KdIsRightChild (
  40. IN PRTL_SPLAY_LINKS Links
  41. );
  42. BOOLEAN
  43. KdIsGenericTableEmpty (
  44. IN PRTL_GENERIC_TABLE Table
  45. );
  46. PRTL_SPLAY_LINKS
  47. KdRealSuccessor (
  48. IN PRTL_SPLAY_LINKS Links
  49. );
  50. PVOID
  51. KdEnumerateGenericTableWithoutSplaying (
  52. IN PRTL_GENERIC_TABLE pTable,
  53. IN PVOID *RestartKey
  54. );
  55.