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.

45 lines
1.1 KiB

  1. #pragma once
  2. #include "nmbase.h"
  3. #include "nmres.h"
  4. #include "conmansa.h"
  5. extern LONG g_CountSharedAccessConnectionEnumerators;
  6. class ATL_NO_VTABLE CSharedAccessConnectionManagerEnumConnection :
  7. public CComObjectRootEx <CComMultiThreadModel>,
  8. public CComCoClass <CSharedAccessConnectionManagerEnumConnection,
  9. &CLSID_LanConnectionManagerEnumConnection>,
  10. public IEnumNetConnection
  11. {
  12. private:
  13. BOOL m_bEnumerated;
  14. public:
  15. CSharedAccessConnectionManagerEnumConnection()
  16. {
  17. m_bEnumerated = FALSE;
  18. InterlockedIncrement(&g_CountSharedAccessConnectionEnumerators);
  19. }
  20. ~CSharedAccessConnectionManagerEnumConnection();
  21. DECLARE_REGISTRY_RESOURCEID(IDR_SA_CONMAN_ENUM)
  22. BEGIN_COM_MAP(CSharedAccessConnectionManagerEnumConnection)
  23. COM_INTERFACE_ENTRY(IEnumNetConnection)
  24. END_COM_MAP()
  25. // IEnumNetConnection
  26. STDMETHOD(Next)(ULONG celt, INetConnection **rgelt, ULONG *pceltFetched);
  27. STDMETHOD(Skip)(ULONG celt);
  28. STDMETHOD(Reset)();
  29. STDMETHOD(Clone)(IEnumNetConnection **ppenum);
  30. HRESULT FinalRelease(void);
  31. public:
  32. };