Compartilhar via


OBEX_HEADER (Windows CE 5.0)

Send Feedback

This structure is used to enumerate headers in a collection.

typedef struct _OBEX_HEADER {byte bId;[switch_is(bId & OBEX_HEADER_4BYTE)]union {[case(OBEX_HEADER_UNICODE)][string] LPWSTR pszData;[case(OBEX_HEADER_4BYTE)]DWORD dwData;[case(OBEX_HEADER_1BYTE)]byte bData;[case(OBEX_HEADER_STREAM)]struct {DWORD dwSize; [size_is(dwSize)] byte* pbaData;} ba;} value;} OBEX_HEADER;

Members

  • bId
    Identifier of the header.
  • pszData
    Data size of the header.
  • dwData
    Header data available.
  • bData
    Used when there is just one byte of data.
  • dwSize
    Size of the byte array.
  • pbaData
    Pointer to the data details.

Remarks

Depending on the type of header (OBEX_HEADER_UNICODE, OBEX_HEADER_STREAM, OBEX_HEADER_1BYTE, and OBEX_HEADER_1BYTE) defined by the bId member, specific fields should be used. If the stream type is OBEX_HEADER_STREAM, the pbaData member will need to be released with the CoTaskMemFree function call.

Requirements

Smartphone: Smartphone 2002 and later

Pocket PC: Pocket PC 2002 and later

OS Versions: Windows CE .NET 4.0 and later.

Header: Obex.h, Obex.idl.

Note   This information applies to the version of the operating system as provided by Microsoft. Actual implementation is determined by the original equipment manufacturer (OEM) and may not be supported in some devices.

See Also

CoTaskMemFree | OBEX Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.