mirror of https://github.com/tongzx/nt5src
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.
36 lines
699 B
36 lines
699 B
#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;
|
|
}
|
|
|