AnyConnect Secure Mobility Client COM API 4.1.06020

- 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(0)] VARIANT_BOOL bIsSBL,[in, defaultvalue(-1)] VARIANT_BOOL bIsPrimaryGUI,[in, defaultvalue(-1)] VARIANT_BOOL bRequestFullCapabilities,[in, defaultvalue(-1)] VARIANT_BOOL bSuppressAutoConnect)
HRESULT | Detach ()
HRESULT | RegisterAndAttach ([in] IVpnApiEvents *pVpnApiEvents,[in, defaultvalue(0)] VARIANT_BOOL bIsSBL,[in, defaultvalue(-1)] VARIANT_BOOL bIsPrimaryGUI,[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]`
VARIANT_BOOL | CertBlockedResponse`[set]`
VARIANT_BOOL | CertWarningResponse ([in] VARIANT_BOOL bConnect)`[set]`
BSTR | VpnStatsTranslatedLabel ([in] VPNStatsTag eVPNStatsTag)`[get]`
BSTR | UpgradeRegistryKeyName`[get]`
BSTR | UpgradeRegistryValueName`[get]`

## Detailed Description

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