ISdpStream::Retrieve*

This method retrieves data of a specified type (*) from the stream in a pointer-alignment-safe manner.

HRESULT Retrieve*(
  UCHAR* pStream,
  OutputType* outputElement
);

The following table shows possible syntax for this method.

Retrieve

method (*)

Output type Output element
Uuid128 GUID *pUuid128
Uint16 USHORT *pUint16
Uint32 ULONG *pUint32
Uint64 ULONGLONG *pUint64
Uint128 PSDP_ULARGE_INTEGER_16 *pUint128
Int16 SHORT *pInt16
Int32 LONG *pInt32
Int64 LONGLONG *pInt64
Int128 PSDP_LARGE_INTEGER_16 *pInt128

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

HRESULT RetrieveUint64(
  UCHAR* pStream,
  ULONGLONG* pUint64
);

Parameters

  • pStream
    [in] Pointer to the stream containing the data.
  • outputElement
    [out] Destination pointer for the retrieved data.

Return Values

None.

Requirements

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

See Also

ISdpStream

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.