OBEX_HEADER
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
OS Versions: Windows CE .NET 4.0 and later.
Header: Obex.h, Obex.idl.
See Also
CoTaskMemFree | OBEX Structures
Last updated on Friday, April 09, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.