다음을 통해 공유


ISdpStream::ByteSwap* (Windows CE 5.0)

Send Feedback

This method converts data of a specified type (*) from system-specific byte ordering into SDP network byte order.

HRESULT ByteSwap*Type inputElement,Type outputElement);

Parameters

  • inputElement
    [in] Data to convert.
  • outputElement
    [out] Destination pointer for the converted data.

Return Values

None.

Remarks

The following table shows possible syntax for this method.

ByteSwap
method (*)
Type Input element Output element
Uuid128 GUID *pInUuid128 *pOutUuid128
Uint128 PSDP_ULARGE_INTEGER_16 *pInUint128 *pOutUint128
Uint64 ULONGLONG inUint64 *pOutUint64
Uint32 ULONG uint32 *pUint32
Uint16 USHORT uint16 *pUint16
Int128 PSDP_LARGE_INTEGER_16 *pInInt128 *pOutInt128
Int64 LONGLONG inInt64 *pOutInt64
Int32 LONG int32 *pInt32
Int16 SHORT int16 *pInt16

For example, to swap Uint64, use the following syntax.

HRESULT ByteSwapUint64(
  ULONGLONG inUint64,
  ULONGLONG* pOutUint64
);

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Bthapi.h, Bthapi.idl.
Link Library: Btdrt.lib.

See Also

ISdpStream

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.