Windows2003-3790/inetsrv/iis/lkrhash/lkrdbg/str-num.cpp
2020-09-30 16:53:55 +02:00

49 lines
962 B
C++

#include "precomp.hxx"
#include "lkrcust.h"
#include "..\samples\str-num\str-num.h"
BOOL
WINAPI
CStringTest_TableDump(
IN CLKRHashTable* pht,
IN INT nVerbose)
{
return TRUE;
}
BOOL
WINAPI
CNumberTest_TableDump(
IN CLKRHashTable* pht,
IN INT nVerbose)
{
return TRUE;
}
BOOL
WINAPI
CTest_RecordDump(
IN const void* pvRecord,
IN DWORD dwSignature,
IN INT nVerbose)
{
// Don't want to provide CTest ctor, so use CPP_VAR macros
DEFINE_CPP_VAR(CTest, test);
CTest* pTest = GET_CPP_VAR_PTR(CTest, test);
// Copy the CTest from the debuggee's memory
ReadMemory(pvRecord, pTest, sizeof(test), NULL);
dprintf("%p (%08x): m_n=%d, m_sz=\"%s\", m_fWhatever=%d, m_cRefs=%d\n",
pvRecord, dwSignature, pTest->m_n, pTest->m_sz,
(int) pTest->m_fWhatever, pTest->m_cRefs);
return TRUE;
}