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.

96 lines
3.0 KiB

  1. // ClientConsole.h : main header file for the CLIENTCONSOLE application
  2. //
  3. #if !defined(AFX_CLIENTCONSOLE_H__5B27AC67_C003_40F4_A688_721D5534C391__INCLUDED_)
  4. #define AFX_CLIENTCONSOLE_H__5B27AC67_C003_40F4_A688_721D5534C391__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #ifndef __AFXWIN_H__
  9. #error include 'stdafx.h' before including this file for PCH
  10. #endif
  11. #define CLIENT_CONSOLE_CLASS TEXT("7a56577c-6143-43d9-bdcb-bcf234d86e98")
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CClientConsoleApp:
  14. // See ClientConsole.cpp for the implementation of this class
  15. //
  16. class CClientConsoleApp : public CWinApp
  17. {
  18. public:
  19. CClientConsoleApp();
  20. DWORD SendMail(CString& cstrFile);
  21. BOOL IsMapiEnable()
  22. { return NULL != m_hInstMail ? TRUE : FALSE; }
  23. CMainFrame* GetMainFrame() { return (CMainFrame*)m_pMainWnd; }
  24. CClientConsoleDoc* GetDocument()
  25. {
  26. CMainFrame* pFrame = GetMainFrame();
  27. return (NULL != pFrame) ? (CClientConsoleDoc*)pFrame->GetActiveDocument() : NULL;
  28. }
  29. BOOL IsCmdLineOpenFolder() { return m_cmdLineInfo.IsOpenFolder(); }
  30. FolderType GetCmdLineFolderType() { return m_cmdLineInfo.GetFolderType(); }
  31. DWORDLONG GetMessageIdToSelect() { return m_cmdLineInfo.GetMessageIdToSelect(); }
  32. BOOL IsCmdLineSingleServer() { return m_cmdLineInfo.IsSingleServer(); }
  33. CString& GetCmdLineSingleServerName() { return m_cmdLineInfo.GetSingleServerName(); }
  34. BOOL LaunchConfigWizard(BOOL bExplicit);
  35. void LaunchFaxMonitor();
  36. void InboxViewed();
  37. void OutboxViewed();
  38. BOOL IsRTLUI() { return m_bRTLUI; }
  39. VOID PrepareForModal();
  40. VOID ReturnFromModal();
  41. CString &GetClassName() { return m_PrivateClassName; }
  42. // Overrides
  43. // ClassWizard generated virtual function overrides
  44. //{{AFX_VIRTUAL(CClientConsoleApp)
  45. public:
  46. virtual BOOL InitInstance();
  47. virtual int ExitInstance();
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. //{{AFX_MSG(CClientConsoleApp)
  51. afx_msg void OnAppAbout();
  52. // NOTE - the ClassWizard will add and remove member functions here.
  53. // DO NOT EDIT what you see in these blocks of generated code !
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. private:
  57. BOOL FirstInstance ();
  58. BOOL m_bClassRegistered;
  59. HINSTANCE m_hInstMail; // handle to MAPI32.DLL
  60. CCmdLineInfo m_cmdLineInfo;
  61. CString m_PrivateClassName; // Name of the main frame window class.
  62. // Composed of CLIENT_CONSOLE_CLASS + m_cmdLineInfo.GetSingleServerName()
  63. BOOL m_bRTLUI;
  64. };
  65. /////////////////////////////////////////////////////////////////////////////
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  68. #endif // !defined(AFX_CLIENTCONSOLE_H__5B27AC67_C003_40F4_A688_721D5534C391__INCLUDED_)