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.

42 lines
984 B

  1. #include "precomp.hxx"
  2. #include "lkrcust.h"
  3. #include "..\samples\minfan\minfan.h"
  4. BOOL
  5. WINAPI
  6. CWchar_TableDump(
  7. IN CLKRHashTable* pht,
  8. IN INT nVerbose)
  9. {
  10. return TRUE;
  11. }
  12. BOOL
  13. WINAPI
  14. Vwrecord_RecordDump(
  15. IN const void* pvRecord,
  16. IN DWORD dwSignature,
  17. IN INT nVerbose)
  18. {
  19. // Don't want to provide VwrecordBase ctor, so use CPP_VAR macros
  20. DEFINE_CPP_VAR(VwrecordBase, vwbr);
  21. VwrecordBase* pvwbr = GET_CPP_VAR_PTR(VwrecordBase, vwbr);
  22. // Copy the VwrecordBase from the debuggee's memory
  23. ReadMemory(pvRecord, pvwbr, sizeof(vwbr), NULL);
  24. // Read the associated string from the debuggee's memory
  25. const int MAX_STR=4096;
  26. char sz[MAX_STR];
  27. ReadMemory(pvwbr->Key, sz, MAX_STR, NULL);
  28. sz[MAX_STR-1] = '\0';
  29. dprintf("%p (%08x): Key=\"%s\", m_num=%d, Refs=%d\n",
  30. pvRecord, dwSignature, sz, pvwbr->m_num, pvwbr->cRef);
  31. return TRUE;
  32. }