mirror of
https://github.com/reactos/reactos.git
synced 2024-09-27 04:58:46 +00:00
69a8fd0a73
0.4.15-dev-7606-g874b5a4e00
[NETSHELL] Trivial tweaks (#6484) 0.4.15-dev-7126-ga6341b49d8
[NETSHELL] 640x480-ify complete that module (#6109) 0.4.15-dev-7018-gcbc60aa07a
[NETSHELL] Double click on component should open properties (#6008) CORE-19330 PARTIALLY 0.4.15-dev-6857-g55563fa891
[NETSHELL] IDD_NETPROPERTIES must fit 640x480 CORE-19284 (#5899) (I left out the 3 accelerators) Also port back some other rc tweaks and strip EOL-whitespaces and the IDS_NET_REPAIR from the context menu which is still unimplemented in the older branches and for which I do never intend to port back the implementation. binary size of netshell.dll shrinks slightly on all branches: master RosBEWin2.2.2 GCC8.4.0 dbg x86 659.968 (0.4.15-dev-7598-geb55d98) releases/0.4.14 RosBEWin2.2.2 GCC8.4.0 dbg x86 644.608 -> 640.512 (netshell.dll is one of the rare modules where GCC8.4.0 produces more efficient output than GCC4.7.2) releases/0.4.14 RosBEWin2.1.6 GCC4.7.2 dbg x86 687.104 -> 682.496 releases/0.4.13 RosBEWin2.1.6 GCC4.7.2 dbg x86 685.568 -> 681.472 releases/0.4.12 RosBEWin2.1.6 GCC4.7.2 dbg x86 666.624 -> 662.016 releases/0.4.11 RosBEWin2.1.6 GCC4.7.2 dbg x86 657.408 -> 653.312 releases/0.4.10 RosBEWin2.1.6 GCC4.7.2 dbg x86 576.512 -> 572.928 releases/0.4. 9 RosBEWin2.1.6 GCC4.7.2 dbg x86 576.512 -> 572.416 releases/0.4. 8 RosBEWin2.1.6 GCC4.7.2 dbg x86 576.512 -> 572.416 releases/0.4. 7 RosBEWin2.1.6 GCC4.7.2 dbg x86 576.000 -> 571.904
70 lines
2.5 KiB
C++
70 lines
2.5 KiB
C++
|
|
/// CLASSID
|
|
/// {7007ACC5-3202-11D1-AAD2-00805FC1270E}
|
|
/// open network properties and wlan properties
|
|
|
|
typedef enum
|
|
{
|
|
NET_TYPE_CLIENT = 1,
|
|
NET_TYPE_SERVICE = 2,
|
|
NET_TYPE_PROTOCOL = 3
|
|
} NET_TYPE;
|
|
|
|
typedef struct
|
|
{
|
|
NET_TYPE Type;
|
|
DWORD dwCharacteristics;
|
|
LPWSTR szHelp;
|
|
INetCfgComponent *pNCfgComp;
|
|
UINT NumPropDialogOpen;
|
|
} NET_ITEM, *PNET_ITEM;
|
|
|
|
class CNetConnectionPropertyUi:
|
|
public CComCoClass<CNetConnectionPropertyUi, &CLSID_LanConnectionUi>,
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
public INetConnectionConnectUi,
|
|
public INetConnectionPropertyUi2,
|
|
public INetLanConnectionUiInfo
|
|
{
|
|
public:
|
|
CNetConnectionPropertyUi();
|
|
~CNetConnectionPropertyUi();
|
|
|
|
// INetConnectionPropertyUi2
|
|
virtual HRESULT WINAPI AddPages(HWND hwndParent, LPFNADDPROPSHEETPAGE pfnAddPage, LPARAM lParam);
|
|
virtual HRESULT WINAPI GetIcon(DWORD dwSize, HICON *phIcon);
|
|
|
|
// INetLanConnectionUiInfo
|
|
virtual HRESULT WINAPI GetDeviceGuid(GUID *pGuid);
|
|
|
|
// INetConnectionConnectUi
|
|
virtual HRESULT WINAPI SetConnection(INetConnection* pCon);
|
|
virtual HRESULT WINAPI Connect(HWND hwndParent, DWORD dwFlags);
|
|
virtual HRESULT WINAPI Disconnect(HWND hwndParent, DWORD dwFlags);
|
|
|
|
private:
|
|
BOOL GetINetCfgComponent(INetCfg *pNCfg, INetCfgComponent ** pOut);
|
|
VOID EnumComponents(HWND hDlgCtrl, INetCfg *pNCfg, const GUID *CompGuid, UINT Type);
|
|
VOID InitializeLANPropertiesUIDlg(HWND hwndDlg);
|
|
VOID ShowNetworkComponentProperties(HWND hwndDlg);
|
|
BOOL GetDeviceInstanceID(OUT LPOLESTR *DeviceInstanceID);
|
|
static INT_PTR CALLBACK LANPropertiesUIDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
CComPtr<INetConnection> m_pCon;
|
|
CComPtr<INetCfgLock> m_NCfgLock;
|
|
CComPtr<INetCfg> m_pNCfg;
|
|
NETCON_PROPERTIES * m_pProperties;
|
|
|
|
public:
|
|
DECLARE_NO_REGISTRY()
|
|
DECLARE_NOT_AGGREGATABLE(CNetConnectionPropertyUi)
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CNetConnectionPropertyUi)
|
|
COM_INTERFACE_ENTRY_IID(IID_INetConnectionConnectUi, INetConnectionConnectUi)
|
|
COM_INTERFACE_ENTRY_IID(IID_INetConnectionPropertyUi, INetConnectionPropertyUi2)
|
|
COM_INTERFACE_ENTRY_IID(IID_INetConnectionPropertyUi2, INetConnectionPropertyUi2)
|
|
COM_INTERFACE_ENTRY_IID(IID_INetLanConnectionUiInfo, INetLanConnectionUiInfo)
|
|
END_COM_MAP()
|
|
};
|