ReactOS 0.4.15-dev-5666-gc548b97
connectmanager.h
Go to the documentation of this file.
1
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
42};
43
45 public CComObjectRootEx<CComMultiThreadModelNoCS>,
46 public INetConnection
47{
48 private:
51
52 public:
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
71};
72
75
const WCHAR * class
Definition: main.c:68
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
PINetConnectionItem m_pCurrent
HRESULT EnumerateINetConnections()
virtual HRESULT WINAPI Skip(ULONG celt)
virtual HRESULT WINAPI Reset()
virtual HRESULT WINAPI Next(ULONG celt, INetConnection **rgelt, ULONG *pceltFetched)
virtual HRESULT WINAPI Clone(IEnumNetConnection **ppenum)
PINetConnectionItem m_pHead
NETCON_PROPERTIES m_Props
DWORD m_dwAdapterIndex
BOOL GetAdapterIndexFromNetCfgInstanceId(PIP_ADAPTER_INFO pAdapterInfo, LPWSTR szNetCfg, PDWORD pIndex)
struct tagINetConnectionItem * PINetConnectionItem
HRESULT WINAPI CNetConnectionManager_CreateInstance(REFIID riid, LPVOID *ppv)
struct tagINetConnectionItem INetConnectionItem
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
_In_ PKSPIN_CONNECT Connect
Definition: ks.h:4536
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:542
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:562
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:640
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:612
#define END_COM_MAP()
Definition: atlcom.h:553
#define DECLARE_NO_REGISTRY()
Definition: atlcom.h:600
unsigned int ULONG
Definition: retypes.h:1
_Out_ PULONG _Out_ PULONG pIndex
Definition: ndis.h:4565
EXTERN_C const IID IID_IEnumNetConnection
Definition: netcon.h:142
NETCONMGR_ENUM_FLAGS
Definition: netcon.h:9
EXTERN_C const IID IID_INetConnectionManager
Definition: netcon.h:173
EXTERN_C const IID IID_INetConnection
Definition: netcon.h:125
DWORD * PDWORD
Definition: pedump.c:68
#define REFIID
Definition: guiddef.h:118
struct tagINetConnectionItem * Next
Definition: connectmanager.h:4
NETCON_PROPERTIES Props
Definition: connectmanager.h:6
#define WINAPI
Definition: msvc.h:6
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185