How to disable touch in windows 10

xing 0 Reputation points
2023-03-15T15:46:23.9166667+00:00

Hi,

I have requirement to disable the touch for sometime(for 3 to 5 sec) and then it should be enabled back.

This should be done programmatically in C++. Any lead would help us.

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2023-03-16T08:23:38.1566667+00:00

    Hi, xing

    You could use PnPUtil.exe and Timer to control the timespan

    The command to disable and enable device(Program may require administrator privileges):
    system("pnputil /disable-device your device instance ID");

    system("pnputil /enable-device your device instance ID");

    Instance id could be found from device manager:
    User's image

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.