ReactOS  0.4.14-dev-50-g13bb5e2
lanconnectui.h
Go to the documentation of this file.
1 
5 
6 typedef enum
7 {
11 } NET_TYPE;
12 
13 typedef struct
14 {
18  INetCfgComponent *pNCfgComp;
21 
23  public CComCoClass<CNetConnectionPropertyUi, &CLSID_LanConnectionUi>,
24  public CComObjectRootEx<CComMultiThreadModelNoCS>,
25  public INetConnectionConnectUi,
26  public INetConnectionPropertyUi2,
27  public INetLanConnectionUiInfo
28 {
29  public:
32 
33  // INetConnectionPropertyUi2
35  virtual HRESULT WINAPI GetIcon(DWORD dwSize, HICON *phIcon);
36 
37  // INetLanConnectionUiInfo
38  virtual HRESULT WINAPI GetDeviceGuid(GUID *pGuid);
39 
40  // INetConnectionConnectUi
44 
45  private:
46  BOOL GetINetCfgComponent(INetCfg *pNCfg, INetCfgComponent ** pOut);
47  VOID EnumComponents(HWND hDlgCtrl, INetCfg *pNCfg, const GUID *CompGuid, UINT Type);
50  BOOL GetDeviceInstanceID(OUT LPOLESTR *DeviceInstanceID);
52 
53  CComPtr<INetConnection> m_pCon;
54  CComPtr<INetCfgLock> m_NCfgLock;
55  CComPtr<INetCfg> m_pNCfg;
57 
58  public:
62 
65  COM_INTERFACE_ENTRY_IID(IID_INetConnectionPropertyUi, INetConnectionPropertyUi2)
66  COM_INTERFACE_ENTRY_IID(IID_INetConnectionPropertyUi2, INetConnectionPropertyUi2)
68  END_COM_MAP()
69 };
static HICON
Definition: imagelist.c:84
Type
Definition: Type.h:6
CComPtr< INetConnection > m_pCon
Definition: lanconnectui.h:53
BOOL GetINetCfgComponent(INetCfg *pNCfg, INetCfgComponent **pOut)
#define CALLBACK
Definition: compat.h:27
static INT_PTR CALLBACK LANPropertiesUIDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
EXTERN_C const IID IID_INetLanConnectionUiInfo
Definition: netcfgn.h:109
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:611
BOOL(CALLBACK * LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM)
Definition: prsht.h:309
UINT_PTR WPARAM
Definition: windef.h:207
BOOL GetDeviceInstanceID(OUT LPOLESTR *DeviceInstanceID)
EXTERN_C const IID IID_INetConnectionPropertyUi2
Definition: netcon.h:252
int32_t INT_PTR
Definition: typedefs.h:62
virtual HRESULT WINAPI GetDeviceGuid(GUID *pGuid)
#define DECLARE_NO_REGISTRY()
Definition: atlcom.h:599
static LPOLESTR
Definition: stg_prop.c:27
WPARAM wParam
Definition: combotst.c:138
EXTERN_C const IID IID_INetConnectionPropertyUi
Definition: netcon.h:227
EXTERN_C const IID IID_INetConnectionConnectUi
Definition: netcon.h:203
unsigned int BOOL
Definition: ntddk_ex.h:94
static HWND hwndParent
Definition: cryptui.c:300
LONG_PTR LPARAM
Definition: windef.h:208
VOID InitializeLANPropertiesUIDlg(HWND hwndDlg)
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:541
virtual HRESULT WINAPI Disconnect(HWND hwndParent, DWORD dwFlags)
UINT NumPropDialogOpen
Definition: lanconnectui.h:19
VOID EnumComponents(HWND hDlgCtrl, INetCfg *pNCfg, const GUID *CompGuid, UINT Type)
LONG HRESULT
Definition: typedefs.h:77
virtual HRESULT WINAPI GetIcon(DWORD dwSize, HICON *phIcon)
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD dwCharacteristics
Definition: lanconnectui.h:16
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
LPWSTR szHelp
Definition: lanconnectui.h:17
CComPtr< INetCfg > m_pNCfg
Definition: lanconnectui.h:55
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:561
NET_TYPE
Definition: lanconnectui.h:6
unsigned int UINT
Definition: ndis.h:50
VOID ShowNetworkComponentProperties(HWND hwndDlg)
#define DECLARE_PROTECT_FINAL_CONSTRUCT()
Definition: atlcom.h:639
#define OUT
Definition: typedefs.h:39
CComPtr< INetCfgLock > m_NCfgLock
Definition: lanconnectui.h:54
struct NET_ITEM * PNET_ITEM
INetCfgComponent * pNCfgComp
Definition: lanconnectui.h:18
#define END_COM_MAP()
Definition: atlcom.h:552
virtual HRESULT WINAPI AddPages(HWND hwndParent, LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam)
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LPARAM lParam
Definition: combotst.c:139
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54
NET_TYPE Type
Definition: lanconnectui.h:15
virtual HRESULT WINAPI Connect(HWND hwndParent, DWORD dwFlags)
virtual HRESULT WINAPI SetConnection(INetConnection *pCon)
NETCON_PROPERTIES * m_pProperties
Definition: lanconnectui.h:56