Jump to content

Laptop accelerometer (IBM ThinkVantage Active Protection)


rafalp
 Share

Recommended Posts

I want to start a topic about accelerometer system in laptop e.g. Lenovo ThinkVintage Active Protection. I think our community could do a useful and interesing programs with this system. But I'm newly with autoIT, and maybe someone can pull this subject farther.

My research and usefull links:

Script in Perl:

http://svn.bulknews.net/repos/public/thinkpad-saber/trunk/thinkpad-saber.pl

Examples and about Win32 dll:

http://www.thinkwiki.org/wiki/Active_Protection_System

http://www.thinkwiki.org/wiki/HDAPS

Sample about "ShockMgr" and shockprf.sys

http://www.paul.sladen.org/thinkpad-r31/accelerometer.html

Sample in C++ and ASM (Polish lang):

http://www.programuj.com/forum/viewtopic.php?p=48947

In windows we got DLL's responsible for accelerometer:

C:WindowsSysWOW64Sensor.DLL

C:Program Files (x86)ThinkPadTpShocksTpShLP.dll

I also using DLL Export View to check and that DLL's have usefull method, but I don't know how to go on with them.

I made simple code:

$dll = DllOpen("C:Program Files (x86)ThinkPadTpShocksTpShLP.dll")
;$dll = DllOpen("C:WindowsSysWOW64Sensor.DLL")
MsgBox(4096, "Status", $dll, 5)
$ret = DllCall($dll, "int:cdecl", "LP_GetStatus","int",1)
MsgBox(4096, "Status", @error, 5)

But I got errors, and I'm not sure is it a good method to start.

I look forward for opinion whose interested of this topic.

Edited by rafalp
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...