Leaked source code of windows server 2003
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.

39 lines
1.0 KiB

  1. //
  2. //
  3. #include <windows.h>
  4. extern const char SzNull[] = "";
  5. //// AssertFn
  6. //
  7. VOID DigSigAssertFn(LPCTSTR szWhy, LPCTSTR szInfo, int lineno, LPCTSTR fname)
  8. {
  9. int nRet;
  10. TCHAR rgch[1024];
  11. wsprintf(rgch, "An assertion has occurred in the code.\n"
  12. "Assertion was located at File: %s, Line: %d\n"
  13. "Assertion condition was %s\n%s\n"
  14. "\nPress Ignore to skip assertion, Retry to break into the"
  15. " debugger, or Abort to kill the program.\n\n"
  16. "Make sure that JIT is setup to use WinDbg please.",
  17. fname, lineno, szWhy, szInfo);
  18. nRet = MessageBox(GetActiveWindow(), rgch, "S/MIME Test Assert",
  19. MB_ABORTRETRYIGNORE | MB_SYSTEMMODAL |
  20. MB_ICONEXCLAMATION | MB_DEFBUTTON3);
  21. switch( nRet ) {
  22. case IDABORT:
  23. FatalAppExit(0, "Terminating App");
  24. case IDRETRY:
  25. DebugBreak();
  26. break;
  27. case IDIGNORE:
  28. break;
  29. }
  30. }