Freigeben über


RasHangUp (Windows CE 5.0)

Send Feedback

This function terminates a remote access connection. The connection is specified with a RAS connection handle. RasHangUp releases all RASAPI32.DLL resources associated with the handle.

DWORDRasHangUp(HRASCONNSession );

Parameters

  • Session
    Handle to the remote access connection to terminate. This is a handle returned from a previous call to RasDial or RasEnumConnections.

Return Values

Zero indicates success. A nonzero error value listed in the RAS header file or ERROR_INVALID_HANDLE indicates failure.

Include Raserror.h for definitions of the RAS error codes.

Remarks

The connection is terminated even if the RasDial call has not yet been completed.

After this call, the Session handle can no longer be used.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Ras.h.
Link Library: Coredll.lib.

See Also

RasDial | RasEnumConnections | RasGetConnectStatus | RASCONN

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.