ReactOS 0.4.16-dev-240-gdb5fa3b
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 STDMETHOD(EnumConnections)(NETCONMGR_ENUM_FLAGS Flags, IEnumNetConnection **ppEnum) override;
22
23 // IEnumNetConnection
24 STDMETHOD(Next)(ULONG celt, INetConnection **rgelt, ULONG *pceltFetched) override;
25 STDMETHOD(Skip)(ULONG celt) override;
26 STDMETHOD(Reset)() override;
27 STDMETHOD(Clone)(IEnumNetConnection **ppenum) override;
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
57 STDMETHOD(Connect)() override;
58 STDMETHOD(Disconnect)() override;
59 STDMETHOD(Delete)() override;
60 STDMETHOD(Duplicate)(LPCWSTR pszwDuplicateName, INetConnection **ppCon) override;
61 STDMETHOD(GetProperties)(NETCON_PROPERTIES **ppProps) override;
62 STDMETHOD(GetUiObjectClassId)(CLSID *pclsid) override;
63 STDMETHOD(Rename)(LPCWSTR pszwDuplicateName) override;
64
67
71};
72
75
const WCHAR * class
Definition: main.c:68
BOOL Delete(LPCTSTR ServiceName)
Definition: delete.c:12
#define STDMETHOD(m)
Definition: basetyps.h:62
PINetConnectionItem m_pCurrent
STDMETHOD() Clone(IEnumNetConnection **ppenum) override
HRESULT EnumerateINetConnections()
STDMETHOD() Reset() override
STDMETHOD() Skip(ULONG celt) override
STDMETHOD() Next(ULONG celt, INetConnection **rgelt, ULONG *pceltFetched) override
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:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:679
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define END_COM_MAP()
Definition: atlcom.h:592
#define DECLARE_NO_REGISTRY()
Definition: atlcom.h:639
_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
uint32_t ULONG
Definition: typedefs.h:59
#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