OBEX_REQUEST

This structure identifies an incoming command request.

typedef struct _OBEX_REQUEST {
  DWORD dwRequest;
  DWORD dwFlags;
  IHeaderCollection * pHeaderCol;
  BOOL fStream;
  IStream * pStream;
} OBEX_REQUEST, *POBEX_REQUEST;

Members

  • dwRequest
    Identifies the request. Requests, defined by the IrOBEX v1.2 spec, are shown in the following table.

    Opcode (w/high bit set) Definition Description
    0x81 Disconnect Signals the end of a connection.
    0x02 (0x82) Put Sends an object.
    0x03 (0x83) Get Gets an object.
    0x04 (0x84) Reserved  
    0x85 SetPath Modifies the current path on the server.
    0xFF Abort Aborts the current operation.
    0x06 to 0x0F Reserved Not to be used without extension to the IrOBEX specification.
    0x10 to 0x1F User Definable  
  • dwFlags
    Represents any flags that were passed to the command.

  • pHeaderCol
    Pointer to an IHeaderCollection interface containing headers passed by the client. Release this pointer if it is non-NULL, even if it is not used.

  • fStream
    If a stream interface is used for sending or receiving data during get and put requests, this value should be set to TRUE.

  • pStream
    Pointer to the IStream interface used to send and receive data to the client. This parameter is only valid on Get and Put command requests. Release this pointer if it is non-NULL, even if it is not used.

Requirements

Pocket PC Platforms: Pocket PC 2002 and later
OS Versions: Windows CE 3.0 and later
Header: obex.h
Library: obexguid.lib

See Also

IHeaderCollection

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.