次の方法で共有


IOCTL_TOUCH_SET_SAMPLE_TIMEOUT (Compact 2013)

3/26/2014

This I/O control message sets the timeout value for retrieving touch samples. Send this message with DeviceIoControl.

Syntax

BOOL DeviceIoControl(
    HANDLE hPddContext,      // handle to the PDD context
    DWORD dwIoControlCode,   // use IOCTL_TOUCH_SET_SAMPLE_TIMEOUT
    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_TIMEOUT for this operation.
  • lpInBuffer
    [in] Pointer to a DWORD value that contains the desired sample timeout value.
  • 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

The default touch sample timeout is infinite. 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