windows-nt/Source/XPSP1/NT/inetsrv/iis/lkrhash/lkrdbg/str-num.cpp
2020-09-26 16:20:57 +08:00

49 lines
914 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, &test, 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;
}