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.
 
 
 
 
 
 

50 lines
1.3 KiB

//+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 1998.
//
// File: errdlg.cxx
//
// Contents: Error dialog function
//
//
// History: 14-Jul-1998 SitaramR Created from util.cxx
//
//---------------------------------------------------------------------------
#include "precomp.h"
extern TCHAR szSyncMgrHelp[];
extern ULONG g_aContextHelpIds[];
extern HINSTANCE g_hmodThisDll; // Handle to this DLL itself.
//+---------------------------------------------------------------------------
//
// Security functions
//
// only on NT
//
//----------------------------------------------------------------------------
void
SchedUIErrorDialog(
HWND hwnd,
int idsErrMsg)
{
TCHAR szTitleBuf[MAX_PATH + 1];
TCHAR szErrorBuf[MAX_PATH + 1];
//
// Load the error message string.
//
LoadString(g_hmodThisDll, IDS_SYNCHMGR_NAME, szTitleBuf, ARRAYSIZE(szTitleBuf));
LoadString(g_hmodThisDll, idsErrMsg, szErrorBuf, ARRAYSIZE(szErrorBuf));
MessageBox(hwnd, szErrorBuf, szTitleBuf,
MB_APPLMODAL | MB_ICONEXCLAMATION | MB_OK);
}