Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 17th, 2004, 11:12 PM   #1
metomeya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 metomeya is on a distinguished road
I'm not a programmer, but I was wondering if it would be possible for someone to make 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.

I've looked everywhere for a program, or someway to do this, your my only hope.
metomeya is offline   Reply With Quote
Old Sep 18th, 2004, 4:49 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
doesn't a laptop normally shutit self down when it gets closed?
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Sep 18th, 2004, 5:52 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
No, he wants the laptop to lock itself. If he's using WinXp with Fast User Switching, it's the equivalent of pressing Switch User. If not, it's the same as hitting Ctrl+Alt+Del and choosing Lock Workstation.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Sep 18th, 2004, 10:10 PM   #4
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
I'm not sure how to do this, but I have saw your post on other forums that I visit... must be a small world.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Sep 19th, 2004, 2:02 PM   #5
metomeya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 metomeya is on a distinguished road
Maybe not I've been posting this at every forum I can find.

It is sad, no one has an answer for me. They always tell me to use standby but that cuts my internet connection and my downloads, or my screen saver but then it gets annoying to put my password in every time i'm away for awhile.


Can't anyone write a simple little program? (you would think there would be one out there).
metomeya is offline   Reply With Quote
Old Sep 21st, 2004, 5:48 PM   #6
metomeya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 metomeya is on a distinguished road
I hate to play necromancer, but does anyone have an answer to this question?
metomeya is offline   Reply With Quote
Old Sep 23rd, 2004, 12:16 AM   #7
metomeya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 metomeya is on a distinguished road
Can I am getting progress here

Okay check out this site

http://msdn.microsoft.com/library/default....1ad0ec4.xml.asp

I talks about detecting the lid close state "PO_CB_LID_SWITCH_STATE − Indicates that the lid switch has changed states" but I can't figure out is this like in C++ or visual basic or something?

And this is what a friend told me

"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."

So it is at all possible to write something to do this? :ph34r:
metomeya is offline   Reply With Quote
Old Oct 3rd, 2004, 12:26 PM   #8
metomeya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 metomeya is on a distinguished road
no replies.............
metomeya is offline   Reply With Quote
Old Oct 3rd, 2004, 3:15 PM   #9
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally posted by metomeya@Sep 19 2004, 07:02 PM
It is sad, no one has an answer for me. They always tell me to use... my screen saver but then it gets annoying to put my password in every time i'm away for awhile.
Locking your computer will make you type your password in again, mate.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:18 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC