IOCTL_TOUCH_GET_SAMPLE_RATE (Compact 2013)

3/26/2014

This I/O control message returns 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_GET_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_GET_SAMPLE_RATE for this operation.
  • lpInBuffer
    [in] Not used; set to NULL.
  • nInBufferSize
    [in] Not used; set to zero.
  • lpOutBuffer
    [out] Pointer to a DWORD value that receives the current IST sampling rate.
  • nOutBufferSize
    [in] Size of the value pointed to by lpOutBuffer.
  • lpBytesReturned
    [out] Pointer to a DWORD variable that receives the length of data, in bytes, returned to the lpOutBuffer buffer. If the call succeeds, the length is sizeof(DWORD).
  • 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