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.

49 lines
1.5 KiB

  1. /******************************************************************************
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. MPCConnection.h
  5. Abstract:
  6. This file contains the declaration of the CMPCConnection class, which is
  7. used as the entry point into the Upload Library.
  8. Revision History:
  9. Davide Massarenti (Dmassare) 04/15/99
  10. created
  11. ******************************************************************************/
  12. #if !defined(__INCLUDED___ULMANAGER___MPCCONNECTION_H___)
  13. #define __INCLUDED___ULMANAGER___MPCCONNECTION_H___
  14. class ATL_NO_VTABLE CMPCConnection : // Hungarian: mpcc
  15. public CComObjectRootEx<MPC::CComSafeMultiThreadModel>,
  16. public CComCoClass<CMPCConnection, &CLSID_MPCConnection>,
  17. public IDispatchImpl<IMPCConnection, &IID_IMPCConnection, &LIBID_UPLOADMANAGERLib>
  18. {
  19. public:
  20. CMPCConnection();
  21. DECLARE_CLASSFACTORY_SINGLETON(CMPCConnection)
  22. DECLARE_REGISTRY_RESOURCEID(IDR_MPCCONNECTION)
  23. DECLARE_NOT_AGGREGATABLE(CMPCConnection)
  24. DECLARE_PROTECT_FINAL_CONSTRUCT()
  25. BEGIN_COM_MAP(CMPCConnection)
  26. COM_INTERFACE_ENTRY(IDispatch)
  27. COM_INTERFACE_ENTRY(IMPCConnection)
  28. END_COM_MAP()
  29. public:
  30. // IMPCConnection
  31. STDMETHOD(get_Available)( /*[out, retval]*/ VARIANT_BOOL *pfOnline );
  32. STDMETHOD(get_IsAModem )( /*[out, retval]*/ VARIANT_BOOL *pfModem );
  33. STDMETHOD(get_Bandwidth)( /*[out, retval]*/ long *pdwBandwidth );
  34. };
  35. #endif // !defined(__INCLUDED___ULMANAGER___MPCCONNECTION_H___)