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.

48 lines
962 B

  1. #include "precomp.hxx"
  2. #include "lkrcust.h"
  3. #include "..\samples\str-num\str-num.h"
  4. BOOL
  5. WINAPI
  6. CStringTest_TableDump(
  7. IN CLKRHashTable* pht,
  8. IN INT nVerbose)
  9. {
  10. return TRUE;
  11. }
  12. BOOL
  13. WINAPI
  14. CNumberTest_TableDump(
  15. IN CLKRHashTable* pht,
  16. IN INT nVerbose)
  17. {
  18. return TRUE;
  19. }
  20. BOOL
  21. WINAPI
  22. CTest_RecordDump(
  23. IN const void* pvRecord,
  24. IN DWORD dwSignature,
  25. IN INT nVerbose)
  26. {
  27. // Don't want to provide CTest ctor, so use CPP_VAR macros
  28. DEFINE_CPP_VAR(CTest, test);
  29. CTest* pTest = GET_CPP_VAR_PTR(CTest, test);
  30. // Copy the CTest from the debuggee's memory
  31. ReadMemory(pvRecord, pTest, sizeof(test), NULL);
  32. dprintf("%p (%08x): m_n=%d, m_sz=\"%s\", m_fWhatever=%d, m_cRefs=%d\n",
  33. pvRecord, dwSignature, pTest->m_n, pTest->m_sz,
  34. (int) pTest->m_fWhatever, pTest->m_cRefs);
  35. return TRUE;
  36. }