mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
2.3 KiB
88 lines
2.3 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1997.
|
|
//
|
|
// File: V P N U I . H
|
|
//
|
|
// Contents: VPN connection UI object.
|
|
//
|
|
// Notes:
|
|
//
|
|
// Author: shaunco 17 Dec 1997
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
#include <netshell.h>
|
|
#include "nsbase.h"
|
|
#include "nsres.h"
|
|
#include "rasui.h"
|
|
|
|
|
|
class ATL_NO_VTABLE CVpnConnectionUi :
|
|
public CComObjectRootEx <CComObjectThreadModel>,
|
|
public CComCoClass <CVpnConnectionUi,
|
|
&CLSID_VpnConnectionUi>,
|
|
public CRasUiBase,
|
|
public INetConnectionConnectUi,
|
|
public INetConnectionPropertyUi2,
|
|
public INetConnectionWizardUi
|
|
{
|
|
public:
|
|
CVpnConnectionUi () : CRasUiBase () {m_dwRasWizType = RASWIZ_TYPE_DIALUP;};
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_VPN_UI)
|
|
|
|
BEGIN_COM_MAP(CVpnConnectionUi)
|
|
COM_INTERFACE_ENTRY(INetConnectionConnectUi)
|
|
COM_INTERFACE_ENTRY(INetConnectionPropertyUi2)
|
|
COM_INTERFACE_ENTRY(INetConnectionWizardUi)
|
|
END_COM_MAP()
|
|
|
|
// INetConnectionConnectUi
|
|
STDMETHOD (SetConnection) (
|
|
INetConnection* pCon);
|
|
|
|
STDMETHOD (Connect) (
|
|
HWND hwndParent,
|
|
DWORD dwFlags);
|
|
|
|
STDMETHOD (Disconnect) (
|
|
HWND hwndParent,
|
|
DWORD dwFlags);
|
|
|
|
// INetConnectionPropertyUi2
|
|
STDMETHOD (AddPages) (
|
|
HWND hwndParent,
|
|
LPFNADDPROPSHEETPAGE pfnAddPage,
|
|
LPARAM lParam);
|
|
|
|
STDMETHOD (GetIcon) (
|
|
DWORD dwSize,
|
|
HICON *phIcon );
|
|
|
|
// INetConnectionWizardUi
|
|
STDMETHOD (QueryMaxPageCount) (
|
|
INetConnectionWizardUiContext* pContext,
|
|
DWORD* pcMaxPages);
|
|
|
|
STDMETHOD (AddPages) (
|
|
INetConnectionWizardUiContext* pContext,
|
|
LPFNADDPROPSHEETPAGE pfnAddPage,
|
|
LPARAM lParam);
|
|
|
|
STDMETHOD (GetNewConnectionInfo) (
|
|
DWORD* pdwFlags,
|
|
NETCON_MEDIATYPE* pMediaType);
|
|
|
|
STDMETHOD (GetSuggestedConnectionName) (
|
|
PWSTR* ppszwSuggestedName);
|
|
|
|
STDMETHOD (SetConnectionName) (
|
|
PCWSTR pszwConnectionName);
|
|
|
|
STDMETHOD (GetNewConnection) (
|
|
INetConnection** ppCon);
|
|
};
|
|
|