The MASM Forum

General => The Campus => Topic started by: Magnum on November 18, 2012, 02:05:44 AM

Title: Disable touch pad
Post by: Magnum on November 18, 2012, 02:05:44 AM
I would like to find out what APIs I will need to turn off the touchpad.

I did a search of "disable device" here and the old forum.

Andy

Title: Re: Disable touch pad
Post by: dedndave on November 18, 2012, 02:11:57 AM
most laptops have an OEM setup program that allows you to disable the touchpad
if you don't have it already installed, likely you can download it from the mfg site
Title: Re: Disable touch pad
Post by: CommonTater on November 18, 2012, 02:32:39 AM
Quote from: Magnum on November 18, 2012, 02:05:44 AM
I would like to find out what APIs I will need to turn off the touchpad.

I did a search of "disable device" here and the old forum.

Andy

Actually... take a look in your control panel, mouse settings... often there's an option to disable the touchpad when a mouse is plugged into a USB port.

If that's not what you want... go to Control Panel -> Device Manager ... find the touchpad on that list... Right Click ->  Properties and select "Do not use this device".

Title: Re: Disable touch pad
Post by: Magnum on November 18, 2012, 03:15:34 AM
I want to do it programatically.

I installed a device driver kit and am working on some code now.

Andy
Title: Re: Disable touch pad
Post by: sinsi on November 18, 2012, 03:20:15 PM
Is it a Synaptics touchpad? Some info here (http://www.synaptics.com/developers/manuals) but it uses COM.
Other suggestions I found used WMI, possibly even worse than COM  :biggrin:
Title: Re: Disable touch pad
Post by: Magnum on November 18, 2012, 03:49:33 PM
Thanks sinsi. I will see where this leads me.  :t

I tried devcon to disable it, this will be one of those long learning moments.

Andy

4.1. Command set
The Synaptics TouchPad accepts the full standard PS/2 "mouse" command set. This section describes the mouse commands, along with any special properties of those commands as they are implemented on the Synaptics TouchPad:
• $FF Reset
• $FE Resend
• $FC Error
• $FA Acknowledge
• $F6 Set Defaults
• $F5 Disable
Title: Re: Disable touch pad
Post by: sinsi on November 18, 2012, 04:32:02 PM
Those PS/2 commands are sent via the OUT instruction, that needs a driver - no in/out from userland.
Apparently devcon has trouble on 64-bit windows, the ddk is supposed to have the source code.
It's just a wrapper for a lot of setup api functions. I will have a look through my iso's for the source.
Title: Re: Disable touch pad
Post by: Magnum on November 19, 2012, 12:24:42 AM
Thanks sinsi.

I have the source code from the Synoptics.

Trying to figure out these messages. I am using Dev C++ which seems like a pretty good program.

16   0   C:\z_keep\SynKit.h   In file included from C:\z_keep\SynKit.h
7      C:\z_keep\Disabler.cpp                    from C:\z_keep\Disabler.cpp
6   20   C:\z_keep\SynWraps.h   comdef.h: No such file or directory.
Title: Re: Disable touch pad
Post by: dedndave on November 19, 2012, 12:47:19 AM
QuoteOther suggestions I found used WMI, possibly even worse than COM

WMI uses COM, so yah - but it's not that bad   :P
Edgar and Erol have both done some WMI examples - if you look in the old forum
also, i use qWord's macros for COM - makes things pretty simple
of course, those guys make everything look easy - lol
Title: Re: Disable touch pad
Post by: Magnum on November 20, 2012, 10:04:51 AM
I installed VC++ since that is what my code is designed for, but it's kinda slow.

I tried to set my source code directory, and it can't even see a .cpp file.  :dazzled:

Then VC loads up a call home prog without permission and changed my default for open asm files.

That's O.K, they did good with XP. :-)

Andy
Title: Re: Disable touch pad
Post by: Vortex on November 21, 2012, 06:41:12 AM
Hi Magnum,

You would like to visit Japheth's COM & Assembly page :

http://japheth.de/COMnASM.html

Japheth has a deep understanding of COM, he's an expert of this area.