Share via


TouchPanelSetMode (Windows CE 5.0)

Send Feedback

This function sets mode information for a touch screen device.

BOOL TouchPanelSetMode(INTiIndex,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 Values

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

OS Versions: Windows CE 1.0 and later.
Header: Tchddi.h.
Link Library: Tchmain.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.