ReactOS  0.4.14-dev-49-gfb4591c
connectmanager.h
Go to the documentation of this file.
1 
2 typedef struct tagINetConnectionItem
3 {
8 
10  public CComCoClass<CNetConnectionManager, &CLSID_ConnectionManager>,
11  public CComObjectRootEx<CComMultiThreadModelNoCS>,
12  public INetConnectionManager,
13  public IEnumNetConnection
14 {
15  public:
19 
20  // INetConnectionManager
21  virtual HRESULT WINAPI EnumConnections(NETCONMGR_ENUM_FLAGS Flags, IEnumNetConnection **ppEnum);
22 
23  // IEnumNetConnection
24  virtual HRESULT WINAPI Next(ULONG celt, INetConnection **rgelt, ULONG *pceltFetched);
25  virtual HRESULT WINAPI Skip(ULONG celt);
26  virtual HRESULT WINAPI Reset();
27  virtual HRESULT WINAPI Clone(IEnumNetConnection **ppenum);
28 
29  private:
32 
33  public:
37 
41  END_COM_MAP()
42 };
43 
45  public CComObjectRootEx<CComMultiThreadModelNoCS>,
46  public INetConnection
47 {
48  private:
51 
52  public:
53  ~CNetConnection();
55 
56  // INetConnection
58  HRESULT WINAPI Disconnect();
60  HRESULT WINAPI Duplicate(LPCWSTR pszwDuplicateName, INetConnection **ppCon);
61  HRESULT WINAPI GetProperties(NETCON_PROPERTIES **ppProps);
62  HRESULT WINAPI GetUiObjectClassId(CLSID *pclsid);
63  HRESULT WINAPI Rename(LPCWSTR pszwDuplicateName);
64 
67 
70  END_COM_MAP()
71 };
72 
75 
EXTERN_C const IID IID_INetConnectionManager
Definition: netcon.h:173
virtual HRESULT WINAPI EnumConnections(NETCONMGR_ENUM_FLAGS Flags, IEnumNetConnection **ppEnum)
#define REFIID
Definition: guiddef.h:118
virtual HRESULT WINAPI Reset()
HRESULT EnumerateINetConnections()
_In_ PKSPIN_CONNECT Connect
Definition: ks.h:4536
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HRESULT WINAPI CNetConnectionManager_CreateInstance(REFIID riid, LPVOID *ppv)
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
BOOL GetAdapterIndexFromNetCfgInstanceId(PIP_ADAPTER_INFO pAdapterInfo, LPWSTR szNetCfg, PDWORD pIndex)
EXTERN_C const IID IID_IEnumNetConnection
Definition: netcon.h:139
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
PINetConnectionItem m_pCurrent
#define DECLARE_NO_REGISTRY()
Definition: atlcom.h:599
DWORD m_dwAdapterIndex
PINetConnectionItem m_pHead
struct tagINetConnectionItem INetConnectionItem
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
unsigned int BOOL
Definition: ntddk_ex.h:94
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
LONG HRESULT
Definition: typedefs.h:77
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
NETCON_PROPERTIES Props
Definition: connectmanager.h:6
NETCONMGR_ENUM_FLAGS
Definition: netcon.h:8
struct tagINetConnectionItem * PINetConnectionItem
virtual HRESULT WINAPI Clone(IEnumNetConnection **ppenum)
struct tagINetConnectionItem * Next
Definition: connectmanager.h:4
_Out_ PULONG _Out_ PULONG pIndex
Definition: ndis.h:4564
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
DWORD * PDWORD
Definition: pedump.c:68
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
const WCHAR * class
Definition: main.c:68
NETCON_PROPERTIES m_Props
unsigned int ULONG
Definition: retypes.h:1
virtual HRESULT WINAPI Next(ULONG celt, INetConnection **rgelt, ULONG *pceltFetched)
virtual HRESULT WINAPI Skip(ULONG celt)
#define END_COM_MAP()
Definition: atlcom.h:552
WCHAR * LPWSTR
Definition: xmlstorage.h:184
EXTERN_C const IID IID_INetConnection
Definition: netcon.h:125
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12