Advertisement

05.14.2008 at 08:23AM PDT, ID: 23401785
[x]
Attachment Details

Lock and Unlock workstation programatically via VB.NET

Asked by Frosty555 in Microsoft Visual Basic.Net, Windows Programming, Visual Studio

Tags:

I'm trying to build a VB.NET program that can lock or unlock the local computer's desktop (e.g. the equivalent of windows key+L).

It's easy enough to *lock* the desktop. There's lots of scripts to do that, e.g.
    rundll32.exe user32.dll,LockWorkStation

If VB.NET has a managed way, I'd like to hear it though.

But how do I UNLOCK the desktop later? Assume the program will be running at the time the desktop is locked, the user has administrative rights, and the program already knows the username/password of the logged in user. Also you can assume that the "require ctrl+alt+del to login" feature is disabled, since I'm sure that feature exists SPECIFICALLY to block what i'm trying to do, so lets say it is turned off and the flashy windows xp logon interface is being used.
Start Free Trial
[+][-]05.15.2008 at 02:31PM PDT, ID: 21578161

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Windows Programming, Visual Studio
Tags: Visual Basic .NET
Sign Up Now!
Solution Provided By: AkisC
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.20.2008 at 08:47AM PDT, ID: 21607317

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 10:00AM PDT, ID: 21608099

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.20.2008 at 10:07AM PDT, ID: 21608144

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 10:19AM PDT, ID: 21653716

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.28.2008 at 12:38AM PDT, ID: 21658418

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628