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.

88 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. dccole.h
  5. Abstract:
  6. This file defines the OLE interface to the DCCMAN module (Desktop Only)
  7. Environment:
  8. User Mode - Win32
  9. --*/
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif /* __cplusplus */
  13. // {A7B88840-A812-11cf-8011-00A0C90A8F78}
  14. DEFINE_GUID(IID_IDccManSink,
  15. 0xa7b88840, 0xa812, 0x11cf, 0x80, 0x11, 0x0, 0xa0, 0xc9, 0xa, 0x8f, 0x78);
  16. // {A7B88841-A812-11cf-8011-00A0C90A8F78}
  17. DEFINE_GUID(IID_IDccMan,
  18. 0xa7b88841, 0xa812, 0x11cf, 0x80, 0x11, 0x0, 0xa0, 0xc9, 0xa, 0x8f, 0x78);
  19. // {499C0C20-A766-11cf-8011-00A0C90A8F78}
  20. DEFINE_GUID(CLSID_DccMan,
  21. 0x499c0c20, 0xa766, 0x11cf, 0x80, 0x11, 0x0, 0xa0, 0xc9, 0xa, 0x8f, 0x78);
  22. #ifndef _DCCOLEH_
  23. #define _DCCOLEH_
  24. //============================== OLE INTERFACE ===================================
  25. #undef INTERFACE
  26. #define INTERFACE IDccManSink
  27. DECLARE_INTERFACE_ (IDccManSink, IUnknown)
  28. {
  29. // These methods corespond to GW_LOG messages generated by the Win95 DCC
  30. STDMETHOD(OnLogIpAddr) (THIS_ DWORD dwIpAddr) PURE;
  31. STDMETHOD(OnLogTerminated) (THIS) PURE;
  32. STDMETHOD(OnLogActive) (THIS) PURE;
  33. STDMETHOD(OnLogInactive) (THIS) PURE;
  34. STDMETHOD(OnLogAnswered) (THIS) PURE;
  35. STDMETHOD(OnLogListen) (THIS) PURE;
  36. STDMETHOD(OnLogDisconnection) (THIS) PURE;
  37. STDMETHOD(OnLogError) (THIS) PURE;
  38. };
  39. typedef IDccManSink *LPDCCMANSINK;
  40. #undef INTERFACE
  41. #define INTERFACE IDccMan
  42. DECLARE_INTERFACE_ (IDccMan, IUnknown)
  43. {
  44. STDMETHOD(Advise) (THIS_
  45. IN IDccManSink * pDccSink, // The advise sink that is requesting notification
  46. OUT DWORD * pdwContext // Identifies the context for future calls to the Unadvise method
  47. ) PURE;
  48. STDMETHOD(Unadvise) (THIS_
  49. DWORD dwContext // As returned by Advise()
  50. ) PURE;
  51. STDMETHOD(ShowCommSettings) (THIS) PURE; // Displays the Communication Property Sheet on the screen
  52. // If a connection is active, the sheet is in read-only mode
  53. STDMETHOD(AutoconnectEnable) (THIS) PURE;
  54. STDMETHOD(AutoconnectDisable) (THIS) PURE;
  55. STDMETHOD(ConnectNow) (THIS) PURE; // Active only when Autoconnect is Disabled
  56. STDMETHOD(DisconnectNow) (THIS) PURE; // Active only when Autoconnect is Disabled
  57. STDMETHOD(SetIconDataTransferring) (THIS) PURE;
  58. STDMETHOD(SetIconNoDataTransferring) (THIS) PURE;
  59. STDMETHOD(SetIconError) (THIS) PURE;
  60. };
  61. typedef IDccMan *LPDCCMAN;
  62. #endif /* end, ifdef _DCCOLEH_ */
  63. #ifdef __cplusplus
  64. }
  65. #endif /* __cplusplus */