Share via


OBEX_REQUEST (Compact 2013)

3/26/2014

This structure is used to identify an incoming command request.

Syntax

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

Members

  • dwRequest
    Identifies the request as 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

    Cancels the current operation.

    0x06 to 0x0F

    Reserved

    Not to be used without extension to the OBEX 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

Header

obex.h,
obex.idl

See Also

Reference

OBEX Structures
IHeaderCollection

Other Resources

IStream