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.

105 lines
2.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corp., 1992 **/
  4. /**********************************************************************/
  5. #ifndef _MPRMISC_HXX_
  6. #define _MPRMISC_HXX_
  7. /*
  8. MPRMisc.hxx
  9. This file contains class defination used by mprmisc.cxx.
  10. FILE HISTORY:
  11. Congpay 25-Oct-1992 Created
  12. */
  13. /*******************************************************************
  14. NAME: ERROR_DIALOG class
  15. SYNOPSIS: Used by ErrorDialog function.
  16. PARENT: DIALOG_WINDOW.
  17. Public: ERROR_DIALOG (constructor)
  18. NOTES:
  19. HISTORY:
  20. congpay 14-Oct-1992 Created.
  21. ********************************************************************/
  22. class ERROR_DIALOG : public DIALOG_WINDOW
  23. {
  24. private:
  25. SLT _sltText1;
  26. SLT _sltText2;
  27. SLT _sltText3;
  28. CHECKBOX _chkCancelConnection;
  29. CHECKBOX *_pchkHideErrors;
  30. BOOL *_pfDisconnect;
  31. BOOL *_pfHideErrors;
  32. BOOL _fAllowCancel;
  33. protected:
  34. virtual BOOL OnCancel();
  35. virtual BOOL OnOK();
  36. virtual ULONG QueryHelpContext();
  37. public:
  38. ERROR_DIALOG (HWND hwndParent,
  39. const TCHAR *pchText1,
  40. const TCHAR *pchText2,
  41. const TCHAR *pchText3,
  42. BOOL *pfDisconnect,
  43. BOOL fAllowCancel,
  44. BOOL *pfHideErrors);
  45. ~ERROR_DIALOG();
  46. };
  47. /*******************************************************************
  48. NAME: RECONNECT_INFO_WINDOW class
  49. SYNOPSIS: Used by ShowReconnectDialog function.
  50. PARENT: DIALOG_WINDOW.
  51. Public: RECONNECT_INFO_WINDOW (constructor)
  52. NOTES:
  53. HISTORY:
  54. congpay 14-Oct-1992 Created.
  55. ********************************************************************/
  56. class RECONNECT_INFO_WINDOW : public DIALOG_WINDOW
  57. {
  58. private:
  59. SLT _sltTarget;
  60. BOOL * _pfCancel;
  61. protected:
  62. VOID SetText (TCHAR *pszResource);
  63. virtual BOOL OnCancel();
  64. virtual BOOL OnUserMessage(const EVENT &event);
  65. public:
  66. RECONNECT_INFO_WINDOW (HWND hwndParent,
  67. const TCHAR *pszResource,
  68. CID cidTarget,
  69. BOOL * pfCancel);
  70. };
  71. /* Puts up a MsgPopup with the information returned by calling
  72. * WNetGetLastError. Should be called after a WNet call returns
  73. * WN_EXTENDED_ERROR.
  74. */
  75. void MsgExtendedError( HWND hwndParent ) ;
  76. APIERR GetNetworkDisplayName( const TCHAR *pszProvider,
  77. const TCHAR *pszRemoteName,
  78. DWORD dwFlags,
  79. DWORD dwAveCharPerLine,
  80. NLS_STR *pnls );
  81. #endif // _MPRMISC_HXX_