IObexDevice::Disconnect

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method disconnects the current connection.to a remote device.

Syntax

HRESULT Disconnect(
  IHeaderCollection* pHeaders
);

Parameters

  • pHeaders
    [in] A header for a transaction that contains the GUID describing the service to disconnect from. The currently available services (and their respective GUID values) are identified in the following table.

    Value Description

    0

    Inbox (default value); supports object push.

    CLSID_FileExchange

    File transfer protocol; supports object push and object pull.

Return Value

This method returns one of the following values.

Return value Description

S_OK

The request was completed successfully.

E_FAIL

The request failed.

Requirements

Header obex.h, obex.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Pocket PC 2002 and later, Smartphone 2002 and later

See Also

Reference

IObexDevice:IUnknown
IHeaderCollection:IUnknown
OBEX Interfaces

Concepts

Client Support