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

/*****************************************************************************************************************
FILENAME: RemMsg.cpp
COPYRIGHT© 2001 Microsoft Corporation and Executive Software International, Inc.
*/
#include "stdafx.h"
#include <windows.h>
#include "ErrMacro.h"
#include "Message.h"
extern BOOL bPopups;
extern BOOL bIdentifiedErrorPath;
BOOL
RemoteMessageBox(
TCHAR* cMsg,
TCHAR* cTitle
)
{
//If this is set for messageboxes (not IoStress) then pop up a messagebox too.
if(bPopups && !bIdentifiedErrorPath){
MessageBox(NULL, cMsg, cTitle, MB_OK);
//Once an error message has been printed, don't print another.
bIdentifiedErrorPath = TRUE;
}
return TRUE;
}
BOOL
PrintRemoteMessageBox(
TCHAR* pText
)
{
TCHAR * pTemp = pText;
//The first string is the message, the second string is the title.
pTemp += lstrlen(pText) + 1;
MessageBox(NULL, pText, pTemp, MB_OK);
return TRUE;
}