IMessage::Write

Description

Synchronously transfers data to a device. The data to be written is in the SAFEARRAY parameter buffer. This function returns only when the transfer terminates. Only one synchronous write function can occur at any one time.

VB Prototype

value As Long = Write(
  buffer As SAFEARRAY(BYTE),
  count As Long
)

C++ Prototype

HRESULT Write(
  SAFEARRAY(BYTE)* buffer,
  long count,
  long* pRetCount
);

Parameters

buffer

Data to be written. Reading begins at the beginning of the array and stops when count bytes have been written

count

Specifies number of bytes to be written.

pRetCount

The number of bytes written

Return Value

Refer to the table of return codes.

See Also

ComponentVersion, SpecVersion, HardwareInterfaceName, HardwareInterfaceNumber, HardwareInterfaceType, LockState, OptionString, ProgID, ResourceName, SessionType, SoftwareManufacturerID, SoftwareManufacturerName, Timeout, LastStatus, IOProtocol, SendEndEnabled, TerminationCharacter, TerminationCharacterEnabled, GetAttribute, SetAttribute, LockRsrc, UnlockRsrc, Init, Close, AssertTrigger, Clear, ReadSTB, Read, ReadString, Write, WriteString, IMessage Overview