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;
[in] true indicates big endian byte ordering. false indicates little endian byte ordering.
Returns S_OK if successful, otherwise a failure HRESULT.
The following example demonstrates use of the SetDestinationBigEndian function.
// 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; }