| AnyConnect Secure Mobility Client COM API 5.1.8.105

- Main Page
- Modules
- Classes
- Files

- Class List
- Class Hierarchy

Public Member Functions | Properties

# IVpnApi Interface Reference
COM API

`import "VpnApi.idl";`

List of all members.

## Public Member Functions
HRESULT | Register ([in] IVpnApiEvents *pVpnApiEvents,[out, retval] DWORD *pdwCookie)
HRESULT | Unregister ([in] DWORD dwCookie)
HRESULT | Attach ([in, defaultvalue(ClientType_GUI)] enum ClientType clientType,[in, defaultvalue(-1)] VARIANT_BOOL bRequestFullCapabilities,[in, defaultvalue(-1)] VARIANT_BOOL bSuppressAutoConnect)
HRESULT | Detach ()
HRESULT | RegisterAndAttach ([in] IVpnApiEvents *pVpnApiEvents,[in, defaultvalue(ClientType_GUI)] enum ClientType clientType,[in, defaultvalue(-1)] VARIANT_BOOL bRequestFullCapabilities,[in, defaultvalue(-1)] VARIANT_BOOL bSuppressAutoConnect)
HRESULT | UnregisterAndDetach ()
HRESULT | ProcessEvents ()
HRESULT | ConnectVpn ([in] BSTR strHostNameOrAddress)
HRESULT | DisconnectVpn ()
HRESULT | GetState ()
HRESULT | ResetStats ()
HRESULT | StartStats ()
HRESULT | StopStats ()
HRESULT | UserSubmit ()
HRESULT | SavePreferences ()
HRESULT | GetStats ()
## Properties
VARIANT_BOOL | EnableConsumerDrivenEventModel`[set]`
VARIANT_BOOL | HasFullCapabilities`[get]`
VARIANT_BOOL | IsConnected`[get]`
VARIANT_BOOL | IsVPNServiceAvailable`[get]`
IStringCollection | HostNames`[get]`
BSTR | DefaultHostName`[get]`
IPreferenceInfo | Preferences`[get]`
VARIANT_BOOL | BannerResponse`[set]`
VARIANT_BOOL | IsOperatingMode ([in] OperatingMode eOperatingMode)`[get]`
VPNError | LastVpnError`[get]`
VARIANT_BOOL | CertBlockedResponse`[set]`
VARIANT_BOOL | CertWarningResponse ([in] VARIANT_BOOL bConnect)`[set]`
VARIANT_BOOL | PreConnectReminderResponse`[set]`
BSTR | VpnStatsTranslatedLabel ([in] VPNStatsTag eVPNStatsTag)`[get]`
BSTR | UpgradeRegistryKeyName`[get]`
BSTR | UpgradeRegistryValueName`[get]`

## Detailed Description

interface IVpnApi Cisco Secure Client - AnyConnect VPN API IDispatch interface specification. This is the VPN API COM Server instantiated by the user via CoCreateInstance.