Share via


AutoDialEndConnection (Compact 2013)

3/26/2014

This function terminates the connection that was established with auto dial and frees the associated resources. Use this function to terminate a session prematurely.

Syntax

DWORD AutoDialEndConnection(void);

Parameters

None.

Return Value

If no error occurs, this function returns a value of ERROR_SUCCESS.

The following table shows the values that are returned if an error occurs.

Error value

Description

ERROR_ALREADY_DISCONNECTING

Another thread is disconnecting.

ERROR_NO_CONNECTION

There is no auto dial connection to terminate. It may have already been terminated.

Requirements

Header

autodial.h

Library

Autodial.lib

See Also

Reference

ICS Functions