XXX_Write

This function writes data to the device.

Syntax

DWORD XXX_Write( DWORD hOpenContext LPCVOID pSourceBytes DWORD NumberOfBytes );

Parameters

hOpenContext
Handle to the open context of the device. The call to the XXX_Open function returns this identifier.
pSourceBytes
Pointer to the buffer that contains the data to write.
NumberOfBytes
Specifies the number of bytes to write from the pSourceBytes buffer into the device.

Return Values

The number of bytes written indicates success. A value of –1 indicates failure.

Remarks

An application uses the WriteFile function to write to the device. The operating system, in turn, invokes this function.