XXX_Write (Device Manager) (Windows Embedded CE 6.0)

1/6/2010

This function writes data to the device.

Syntax

DWORD XXX_Write(
  DWORD hOpenContext,
  LPCVOID pBuffer,
  DWORD Count 
);

Parameters

  • hOpenContext
    [in] Handle to the open context of the device. The call to the XXX_Open (Device Manager) function returns this identifier.
  • pBuffer
    [out] Pointer to the buffer that contains the data to write.
  • Count
    [in] Number of bytes to write from the pBuffer buffer into the device.

Return Value

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

Remarks

After an application uses the WriteFile function to write to the device, the operating system, invokes this function.

Device Manager uses the XXX prefix as a placeholder. When implementing the stream interface, replace XXX with a prefix appropriate for your specific implementation or use undecorated entry point names in conjunction with DEVFLAGS_NAKEDENTRIES. For more information about other valid Flags values, see ActivateDeviceEx.

Requirements

Header Developer Implemented
Library Developer Implemented
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Stream Interface Driver Functions
ActivateDeviceEx
XXX_Open (Device Manager)

Concepts

Device File Names

Other Resources

WriteFile