The xxx_Write function writes data to the device.
DWORD xxx_Write( DWORD hOpenContext LPCVOID pSourceBytes DWORD NumberOfBytes );
Returns –1 for an error, or the number of bytes written for success.
An application uses WriteFile to write to the device. The operating system, in turn, invokes xxx_Write. The value returned from xxx_Write is equal to the value contained in NumberOfBytes, unless xxx_Write returns -1 for an error.