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.

80 lines
1.6 KiB

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