OBEX_REQUEST

This structure is used to identify 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 version 1.2 Specification, 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Obex.h, Obex.idl.

See Also

IHeaderCollection | IStream | OBEX Structures

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.