Compartir a través de


IOCTL_TOUCH_SET_SAMPLE_RATE (Compact 2013)

3/26/2014

This I/O control message sets the current IST sampling rate. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hPddContext,      // handle to the PDD context
    DWORD dwIoControlCode,   // use IOCTL_TOUCH_SET_SAMPLE_RATE
    LPVOID lpInBuffer,       // pointer to input buffer
    DWORD nInBufferSize,     // input buffer size
    LPVOID lpOutBuffer,      // pointer to output buffer
    DWORD nOutBufferSize,    // output buffer size
    LPDWORD lpBytesReturned, // number of bytes returned
    OVERLAPPED lpOverlapped  // pointer to OVERLAPPED structure
);

Parameters

  • hPddContext
    [in] Handle to the PDD context returned by TchPdd_Init.
  • dwIoControlCode
    [in] The control code for the operation. Use IOCTL_TOUCH_SET_SAMPLE_RATE for this operation.
  • lpInBuffer
    [in] Pointer to a DWORD value that contains the desired IST sampling rate.
  • nInBufferSize
    [in] Size of the value pointed to in lpInBuffer.
  • lpOutBuffer
    [out] Not used; set to NULL.
  • nOutBufferSize
    [in] Not used; set to zero.
  • lpBytesReturned
    [out] Not used; set to NULL.
  • lpOverlapped
    [in] Not used; set to NULL.

Return Values

Returns TRUE if successful; otherwise, returns FALSE.

Remarks

To get extended error information, call GetLastError. GetLastError may return other standard error messages as appropriate.

Requirements

Header

tchstream.h

See Also

Reference

Touch Driver IOCTLs