Stream Interface Driver Functions (Windows Embedded CE 6.0)
1/6/2010
The following table shows the stream interface driver functions with a description of the purpose of each.
Device Manager uses the XXX prefix. When implementing a stream interface driver, replace XXX with a prefix appropriate for your specific implementation. Alternatively, you can use undecorated entry point names in conjunction with DEVFLAGS_NAKEDENTRIES. For more information, see Stream Interface Driver Implementation.
Programming element | Description |
---|---|
This function closes the device context identified by hOpenContext. This function is required to access the device with CreateFile. If you implement XXX_Close, you must implement XXX_Open. |
|
This function de-initializes a device. It is called by Device Manager. This function is required by drivers loaded by ActivateDeviceEx, ActivateDevice, or RegisterDevice. |
|
This function initializes a device. It is called by Device Manager. This function is required by drivers loaded by ActivateDeviceEx, ActivateDevice, or RegisterDevice. |
|
This function sends a command to a device. This function might or might not be required, depending on the device capabilities that the driver exposes. This function requires an implementation of XXX_Open and XXX_Close. |
|
This function opens a device for reading, writing, or both. An application indirectly invokes this function when it calls CreateFile to obtain a handle to a device. This function is required to access the device with CreateFile. |
|
Optional. This function ends power to the device. It is useful only with devices that can be shut off under software control. |
|
Optional. This function restores power to a device. |
|
Optional. This function marks the closing handle as invalid and wakes any sleeping threads. |
|
This function marks the device instance as invalid and wakes sleeping threads. This function is required if the XXX_PreClose function is implemented. |
|
This function reads data from the device identified by the open context. This function might or might not be required, depending on the device capabilities that the driver exposes. This function requires an implementation of XXX_Open and XXX_Close. |
|
This function moves the data pointer in the device. This function might or might not be required, depending on the device capabilities that the driver exposes. This function requires an implementation of XXX_Open and XXX_Close. |
|
This function writes data to the device. This function might or might not be required, depending on the device capabilities that the driver exposes. This function requires an implementation of XXX_Open and XXX_Close. |