Source code of Windows XP (NT5)
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.

54 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: C O N M A N I . C P P
  7. //
  8. // Contents: Class manager for Inbound connections.
  9. //
  10. // Notes:
  11. //
  12. // Author: shaunco 12 Nov 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "pch.h"
  16. #pragma hdrstop
  17. #include "conmani.h"
  18. #include "enumi.h"
  19. #include "ncbase.h"
  20. //+---------------------------------------------------------------------------
  21. // INetConnectionManager
  22. //
  23. //+---------------------------------------------------------------------------
  24. //
  25. // Member: CInboundConnectionManager::EnumConnections
  26. //
  27. // Purpose: Return an INetConnection enumerator.
  28. //
  29. // Arguments:
  30. // Flags [in]
  31. // ppEnum [out] The enumerator.
  32. //
  33. // Returns: S_OK or an error code.
  34. //
  35. // Author: shaunco 12 Nov 1997
  36. //
  37. // Notes:
  38. //
  39. STDMETHODIMP
  40. CInboundConnectionManager::EnumConnections (
  41. NETCONMGR_ENUM_FLAGS Flags,
  42. IEnumNetConnection** ppEnum)
  43. {
  44. HRESULT hr = CInboundConnectionManagerEnumConnection::CreateInstance (
  45. Flags,
  46. IID_IEnumNetConnection,
  47. reinterpret_cast<void**>(ppEnum));
  48. TraceError ("CInboundConnectionManager::EnumConnections", hr);
  49. return hr;
  50. }