次の方法で共有


IObexDevice::Disconnect (Compact 2013)

3/26/2014

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 was unsuccessful.

Requirements

Header

obex.h,
obex.idl

Library

uuid.lib

See Also

Reference

IObexDevice
IHeaderCollection
OBEX Interfaces