Partager via


ISdpStream::Retrieve* (Compact 2013)

3/26/2014

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

Syntax

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

Parameters

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

Return Value

Returns S_OK on success; otherwise returns standard HRESULT values as appropriate.

Remarks

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
);

See Also

Reference

ISdpStream