Source code of Windows XP (NT5)
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

  1. #include <objbase.h>
  2. #include "shelldrt.h"
  3. #include "dbg.h"
  4. static const WCHAR szTestName[] = TEXT("Safe String Test");
  5. // from td_sfstr.cpp
  6. int DoTest(int argc, wchar_t* argv[]);
  7. BOOL CALLBACK SHTestProc()
  8. {
  9. return DoTest(0, NULL);
  10. }
  11. // SHTESTLISTPROC
  12. //
  13. // Each test dll exports this function, which describes the tests
  14. // it contains (or returns just a count if the arg passed to is is null
  15. DWORD CALLBACK ListTestProcs(SHTESTDESCRIPTOR* prgpshtd)
  16. {
  17. if (prgpshtd)
  18. {
  19. prgpshtd->_cbSize = sizeof(prgpshtd);
  20. prgpshtd->_pszTestName = szTestName;
  21. prgpshtd->_pfnTestProc = SHTestProc;
  22. // ????
  23. prgpshtd->_dwAttribs = 0;
  24. }
  25. return 1;
  26. }