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.

47 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: msgbox.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _INC_CSCDLL_MSGBOX_H
  11. #define _INC_CSCDLL_MSGBOX_H
  12. class Win32Error
  13. {
  14. public:
  15. explicit Win32Error(DWORD dwWin32Error)
  16. : m_dwError(dwWin32Error) { }
  17. DWORD Code(void) const
  18. { return m_dwError; }
  19. private:
  20. DWORD m_dwError;
  21. };
  22. namespace CSCUI
  23. {
  24. enum Severity { SEV_ERROR = 0,
  25. SEV_WARNING,
  26. SEV_INFORMATION };
  27. }
  28. INT CscMessageBox(HWND hwndParent, UINT uType, const Win32Error& error);
  29. INT CscMessageBox(HWND hwndParent, UINT uType, const Win32Error& error, LPCTSTR pszMsgText);
  30. INT CscMessageBox(HWND hwndParent, UINT uType, const Win32Error& error, HINSTANCE hInstance, UINT idMsgText, ...);
  31. INT CscMessageBox(HWND hwndParent, UINT uType, LPCTSTR pszMsgText);
  32. INT CscMessageBox(HWND hwndParent, UINT uType, HINSTANCE hInstance, UINT idMsgText, ...);
  33. INT CscWin32Message(HWND hwndParent, DWORD dwError, CSCUI::Severity severity);
  34. #endif // INC_CSCDLL_MSGBOX_H