metomeya
September 23rd, 2004, 12:41 AM
Okay here goes
I'm not a programmer, but I was wondering if it would be possible to write a little background program that would put my computer to lockdown when I closed the lid on my laptop computer?
Here is the command i wanted executed.
rundll32 user32.dll LockWorkStation
Note: Before anyone gives other options I do not want to use standby, hibernate, screen savers passwords, or the win + L. And the option isn't under window's power control options.
------------------------------------------------------------------------
This is the information I've gotten so far. If you check out this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/kmarch/hh/kmarch/k102_db841434-fe00-448d-b5bb-2c35d1ad0ec4.xml.asp
It talks about detecting when a computer is closed or open - "PO_CB_LID_SWITCH_STATE − Indicates that the lid switch has changed states." But is this in C or visual basic or something?
Finally my friend has posted this
"Basically, it looks like the event is available at the driver level, but not at the application level. So you have to write a driver to capture this callback, then pass it along, somehow, to an application which will do what you want. "
I'm not a programmer, but I was wondering if it would be possible to write a little background program that would put my computer to lockdown when I closed the lid on my laptop computer?
Here is the command i wanted executed.
rundll32 user32.dll LockWorkStation
Note: Before anyone gives other options I do not want to use standby, hibernate, screen savers passwords, or the win + L. And the option isn't under window's power control options.
------------------------------------------------------------------------
This is the information I've gotten so far. If you check out this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/kmarch/hh/kmarch/k102_db841434-fe00-448d-b5bb-2c35d1ad0ec4.xml.asp
It talks about detecting when a computer is closed or open - "PO_CB_LID_SWITCH_STATE − Indicates that the lid switch has changed states." But is this in C or visual basic or something?
Finally my friend has posted this
"Basically, it looks like the event is available at the driver level, but not at the application level. So you have to write a driver to capture this callback, then pass it along, somehow, to an application which will do what you want. "