Share via


IObexDevice::SetPath

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method issues a SetPath command to the server. This path defines where files are pushed to or pulled from the server after the local device is connected to a remote device.

Syntax

HRESULT SetPath(
  LPCWSTR pszName,
  DWORD dwFlags,
  IHeaderCollection* pHeaders
);

Parameters

  • pszName
    [in] Name of the path to open.
  • dwFlags
    [in] Flags to use.
  • pHeaders
    [in] Pointer to the headers collection for the remote device.

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.

Remarks

In order to use this method, a connection to a remote device must exist and that connection must use a service that supports the IObexDevice::Get method.

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
OBEX Interfaces

Concepts

Client Support