IOCTL_TOUCH_GET_SAMPLES (Compact 2013)

3/26/2014

This I/O control message gets the buffered touch samples. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hPddContext,      // handle to the PDD context
    DWORD dwIoControlCode,   // use IOCTL_TOUCH_GET_SAMPLES
    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_SAMPLES for this operation.
  • lpInBuffer
    [in] Not used; set to NULL.
  • nInBufferSize
    [in] Not used; set to zero.
  • 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 the size of the TCH_INPUT_SAMPLE_SET structure.
  • 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