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.

48 lines
923 B

  1. /*****************************************************************************************************************
  2. FILENAME: RemMsg.cpp
  3. COPYRIGHT 2001 Microsoft Corporation and Executive Software International, Inc.
  4. */
  5. #include "stdafx.h"
  6. #include <windows.h>
  7. #include "ErrMacro.h"
  8. #include "Message.h"
  9. extern BOOL bPopups;
  10. extern BOOL bIdentifiedErrorPath;
  11. BOOL
  12. RemoteMessageBox(
  13. TCHAR* cMsg,
  14. TCHAR* cTitle
  15. )
  16. {
  17. //If this is set for messageboxes (not IoStress) then pop up a messagebox too.
  18. if(bPopups && !bIdentifiedErrorPath){
  19. MessageBox(NULL, cMsg, cTitle, MB_OK);
  20. //Once an error message has been printed, don't print another.
  21. bIdentifiedErrorPath = TRUE;
  22. }
  23. return TRUE;
  24. }
  25. BOOL
  26. PrintRemoteMessageBox(
  27. TCHAR* pText
  28. )
  29. {
  30. TCHAR * pTemp = pText;
  31. //The first string is the message, the second string is the title.
  32. pTemp += lstrlen(pText) + 1;
  33. MessageBox(NULL, pText, pTemp, MB_OK);
  34. return TRUE;
  35. }