XXX_Read (Device Manager) (Windows Embedded CE 6.0)


This function reads data from the device identified by the open context.

  DWORD hOpenContext,
  LPVOID pBuffer,
  DWORD Count 


[in] Handle to the open context of the device. The XXX_Open (Device Manager) function creates and returns this identifier.


[out] Pointer to the buffer that stores the data read from the device. This buffer should be at least Count bytes long.


[in] Number of bytes to read from the device into pBuffer.

Returns zero to indicate end-of-file. Returns –1 to indicate an error. Returns the number of bytes read to indicate success.

After an application calls the ReadFile function to read from the device, the operating system invokes this function. The hFile parameter is a handle to the device. The pBuffer parameter points to the buffer that contains the data read from the device. The Count parameter indicates the number of bytes that the application requests to read from the device.

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

HeaderDeveloper Implemented
LibraryDeveloper Implemented
Windows Embedded CEWindows CE 1.0 and later

Community Additions