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.

84 lines
1.8 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. cimpsens.hxx
  5. Abstract:
  6. Contains the definition of the CImpISensNetwork interface.
  7. Author:
  8. Gopal Parupudi <GopalP>
  9. [Notes:]
  10. optional-notes
  11. Revision History:
  12. GopalP 11/17/1997 Start.
  13. --*/
  14. #ifndef __CIMPSENS_HXX__
  15. #define __CIMPSENS_HXX__
  16. #include "sensevts.h"
  17. typedef void (FAR PASCAL *LPFNDESTROYED)(void);
  18. class CImpISensNetwork : public ISensNetwork
  19. {
  20. public:
  21. CImpISensNetwork(void);
  22. CImpISensNetwork(LPFNDESTROYED);
  23. ~CImpISensNetwork(void);
  24. //
  25. // IUnknown
  26. //
  27. STDMETHOD (QueryInterface) (REFIID, LPVOID *);
  28. STDMETHOD_(ULONG, AddRef) (void);
  29. STDMETHOD_(ULONG, Release) (void);
  30. //
  31. // IDispatch
  32. //
  33. STDMETHOD (GetTypeInfoCount) (UINT *);
  34. STDMETHOD (GetTypeInfo) (UINT, LCID, ITypeInfo **);
  35. STDMETHOD (GetIDsOfNames) (REFIID, LPOLESTR *, UINT, LCID, DISPID *);
  36. STDMETHOD (Invoke) (DISPID, REFIID, LCID, WORD, DISPPARAMS *, VARIANT *, EXCEPINFO *, UINT *);
  37. //
  38. // ISensNetwork
  39. //
  40. STDMETHOD_(void, ConnectionMade) (BSTR, ULONG, SENS_QOCINFO);
  41. STDMETHOD_(void, ConnectionMadeNoQOCInfo) (BSTR, ULONG);
  42. STDMETHOD_(void, ConnectionLost) (BSTR, ULONG);
  43. STDMETHOD_(void, BeforeDisconnect) (BSTR, ULONG);
  44. STDMETHOD_(void, DestinationReachable) (BSTR, BSTR, ULONG, SENS_QOCINFO);
  45. STDMETHOD_(void, DestinationReachableNoQOCInfo) (BSTR, BSTR, ULONG);
  46. STDMETHOD_(void, FooFunc) (BSTR);
  47. private:
  48. ULONG m_cRef;
  49. LPFNDESTROYED m_pfnDestroy;
  50. };
  51. typedef CImpISensNetwork FAR * LPCIMPISENSNETWORK;
  52. #endif // __CIMPSENS_HXX__