Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DemandDialRequest callback function

The routing protocol calls DemandDialRequest to initiate a demand-dial connection.

Syntax

DWORD CALLBACK DemandDialRequest(
 _In_ DWORD ProtocolId,
 _In_ DWORD InterfaceIndex
);

Parameters

  • ProtocolId [in]
    Specifies the identifier of the routing protocol on behalf of which the connection should be established. (Normally, this parameter is the identifier of the calling routing protocol.)

  • InterfaceIndex [in]
    Specifies the identifier of the interface for which the connection should be established.

Return value

If the function succeeds, the return value is NO_ERROR.

If the function fails, the return value is one of the following values.

Value Description
ERROR_CAN_NOT_COMPLETE

The attempt to establish the connection failed.

ERROR_INVALID_PARAMETER

One of the parameters is invalid.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Routprot.h

See also

Protocol Identifiers

Additional resources