TouchPanelSetMode

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This function sets mode information for a touch screen device.

Syntax

BOOL TouchPanelSetMode(
  INT iIndex,
  LPVOID lpInput 
);

Parameters

  • iIndex
    [in] Integer specifying the mode to set. The following table shows the integers you can specify.

    Value Description

    TPSM_SAMPLERATE_HIGH

    Set the sample rate to the high rate.

    TPSM_SAMPLERATE_LOW

    Set the sample rate to the low rate.

    TPSM_PRIORITY_HIGH_ID

    Set the touch screen IST to high priority.

    TPSM_PRIORITY_NORMAL_ID

    Set the touch screen IST to normal priority.

  • lpInput
    [out] Pointer to one or more memory locations where the update information resides. The format of the memory referenced depends on the mode.

Return Value

TRUE indicates success. FALSE indicates failure. Extended error information is available through GetLastError.

Remarks

High and normal IST thread priorities are read from the registry. The high priority value is set by HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Touch\HighPriority256. The normal priority value is set by HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Touch\Priority256. By default, high and normal priority settings are both 109.

Requirements

Header tchddi.h
Library Tchmain.lib
Windows Embedded CE Windows CE 1.0 and later