次の方法で共有


OBEXTRANSACTION (Windows CE 5.0)

Send Feedback

This structure contains the information for a specific transaction.

typedef struct _obex_transaction {unsigned int uiConnectionId;unsigned int uiTransactionId;unsigned int uiOp;ObexCommand * pObex;MemAlloc ObexAlloc;MemFree ObexFree;ServerCallback ObexExecute;} ObexTransaction;

Members

  • uiConnectionId
    The connection ID of the transaction (allocated by the server).
  • uiTransactionId
    The transaction ID (unique for a standard OBEX request-response exchange).
  • uiOp
    The operation selector. This member contains one of the following values.
    Value Description
    OBEX_REQ_REQUEST Place a request for service.
    OBEX_REQ_CLOSE The connection is closed.
    OBEX_REQ_INIT Initialize service.
    OBEX_REQ_UNLOAD The connection information is unloaded from the cache.
  • pObex
    Pointer to an OBEX server.
  • ObexAlloc
    Allocates the specified block of memory.
  • ObexFree
    Frees the specified block of memory.
  • ObexExecute
    Used to communicate the response from the command to the OBEX server.

Remarks

It is important to note that memory allocation function pointers will always be the same so it is legal to use ObexAlloc in one transaction to allocate block of memory and ObexFree from another transaction to free it (so memory allocated can be persistent across transactions).

To place an OBEX service request, uiOp must be equal to OBEX_REQ_REQUEST and pObex must not be equal to NULL.

Requirements

Smartphone: Smartphone 2002 and later

Pocket PC: Pocket PC 2002 and later

OS Versions: Windows CE .NET 4.0 and later
Header: Obexserver.h

See Also

OBEX Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.