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

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1998.
  5. //
  6. // File: errdlg.cxx
  7. //
  8. // Contents: Error dialog function
  9. //
  10. //
  11. // History: 14-Jul-1998 SitaramR Created from util.cxx
  12. //
  13. //---------------------------------------------------------------------------
  14. #include "precomp.h"
  15. extern TCHAR szSyncMgrHelp[];
  16. extern ULONG g_aContextHelpIds[];
  17. extern HINSTANCE g_hmodThisDll; // Handle to this DLL itself.
  18. //+---------------------------------------------------------------------------
  19. //
  20. // Security functions
  21. //
  22. // only on NT
  23. //
  24. //----------------------------------------------------------------------------
  25. void
  26. SchedUIErrorDialog(
  27. HWND hwnd,
  28. int idsErrMsg)
  29. {
  30. TCHAR szTitleBuf[MAX_PATH + 1];
  31. TCHAR szErrorBuf[MAX_PATH + 1];
  32. //
  33. // Load the error message string.
  34. //
  35. LoadString(g_hmodThisDll, IDS_SYNCHMGR_NAME, szTitleBuf, ARRAYSIZE(szTitleBuf));
  36. LoadString(g_hmodThisDll, idsErrMsg, szErrorBuf, ARRAYSIZE(szErrorBuf));
  37. MessageBox(hwnd, szErrorBuf, szTitleBuf,
  38. MB_APPLMODAL | MB_ICONEXCLAMATION | MB_OK);
  39. }