Jump to content
Sign in to follow this  

Laptop accelerometer (IBM ThinkVantage Active Protection)

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:


Examples and about Win32 dll:



Sample about "ShockMgr" and shockprf.sys


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


In windows we got DLL's responsible for accelerometer:


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

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.