windows-nt/Source/XPSP1/NT/shell/drts/shdrt-sfstr/td_shdrt.cpp
2020-09-26 16:20:57 +08:00

37 lines
699 B
C++

#include <objbase.h>
#include "shelldrt.h"
#include "dbg.h"
static const WCHAR szTestName[] = TEXT("Safe String Test");
// from td_sfstr.cpp
int DoTest(int argc, wchar_t* argv[]);
BOOL CALLBACK SHTestProc()
{
return DoTest(0, NULL);
}
// SHTESTLISTPROC
//
// Each test dll exports this function, which describes the tests
// it contains (or returns just a count if the arg passed to is is null
DWORD CALLBACK ListTestProcs(SHTESTDESCRIPTOR* prgpshtd)
{
if (prgpshtd)
{
prgpshtd->_cbSize = sizeof(prgpshtd);
prgpshtd->_pszTestName = szTestName;
prgpshtd->_pfnTestProc = SHTestProc;
// ????
prgpshtd->_dwAttribs = 0;
}
return 1;
}