Partager via


IOCTL_CS_BUFFERS (Windows Embedded CE 6.0)

1/6/2010

This IOCTL is used in calls to DeviceIoControl to send a buffer to a driver. You can use this IOCTL both during initialization and also when the stream is running.

Parameters

  • lpInBuf
    [in] A pointer to a DWORD value that specifies the type of buffer operation that the driver should perform. Set the value to an element of the BUFFER_COMMANDS enumeration.
  • lpOutBuf
    [out] The value of this pointer depends on the buffer command specified in lpInBuf as shown in the following table.

    lpInBuf lpOutBuf

    CS_ALLOCATE

    A pointer to a CS_STREAM_DESCRIPTOR structure that will be populated by the driver with the list of buffers it allocated.

    CS_ENQUEUE

    A pointer to the buffers that the client is sending to the driver.

    • CS_DEALLOCATE

    A pointer the buffers that the client is releasing.

Remarks

If the driver allocates the buffers, then the client calls IOCTL_CS_BUFFERS when the driver is in the paused state. If the client allocates the buffers, then the client allocates the buffers when the driver is in paused state and sends down the buffers to the driver by calling IOCTL_CS_BUFFERS.

Requirements

Header csmedia.h
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Camera Driver IOCTLs
DeviceIoControl