Click or drag to resize

SetDestinationBigEndian

Specifies the byte order to be used in high-level access operations, such as InXX and MoveInXX, when writing to the destination.

virtual HRESULT SetDestinationBigEndian(bool bBigEndian) abstract;
Parameters
bBigEndian

[in] true indicates big endian byte ordering. false indicates little endian byte ordering.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

Example

The following example demonstrates use of the SetDestinationBigEndian function.

C++
// CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_Write(SAFEARRAY* psaData)
{
  // Destination uses big endian byte ordering
  hr = io.SetDestinationBigEndian(true);

  hr = io.Memory.MoveOut16(VisaA16Space, 0x10, psaData);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.