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.

55 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. routemapi.h
  5. Abstract:
  6. This module provides the implemantation of registry manipulations to
  7. route MAPI calls to the Microsoft Outlook mail client
  8. Author:
  9. Mooly Beery (moolyb) 5-Nov-2000
  10. Revision History:
  11. --*/
  12. #ifndef __FAX_MAPI_ROUTE_CALLS_HEADER_FILE__
  13. #define __FAX_MAPI_ROUTE_CALLS_HEADER_FILE__
  14. // EXPORT_MAPI_ROUTE_CALLS is defined in the module only
  15. // this way when the module is compiled the class exports its functions
  16. // when others use this header file the functions won't be exported by them
  17. #ifdef EXPORT_MAPI_ROUTE_CALLS
  18. #define dllexp __declspec( dllexport )
  19. #else // EXPORT_MAPI_ROUTE_CALLS
  20. #define dllexp
  21. #endif // EXPORT_MAPI_ROUTE_CALLS
  22. class dllexp CRouteMAPICalls
  23. {
  24. public:
  25. CRouteMAPICalls();
  26. ~CRouteMAPICalls(); // used to restore the changes the Init method performed
  27. DWORD Init(LPCTSTR lpctstrProcessName); // this is the process for which the MAPI calls are routed
  28. // used to set up the registry to route MAPI calls of the
  29. // proper process to the Microsoft Outlook mail client
  30. // and to suppress any pop-ups which might occur
  31. private:
  32. bool m_bMSOutlookInstalled; // is Microsoft Outlook mail client installed
  33. bool m_bMSOutlookIsDefault; // is Microsoft Outlook the default mail client
  34. bool m_bProcessIsRouted; // are calls from the requested process already routed
  35. bool m_bProcessIsRoutedToMsOutlook; // are calls from the process routed to Ms Outlook
  36. TCHAR* m_ptProcessName; // process name to route calls for
  37. };
  38. #endif // __FAX_MAPI_ROUTE_CALLS_HEADER_FILE__