XXX_Write (Device Manager)
Other versions of this page are also available for the following:
8/28/2008
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
ActivateDeviceEx
XXX_Open (Device Manager)