Solved

Lock Windows XP through my application

Posted on 2007-11-28
6
810 Views
Last Modified: 2013-12-01
I need to write a Delphi application:

- After logging to Windows XP it must be the first program to run.
- When my program starts it will ask user for some authentication information.
- After validation, user will have access to windows during some pre-defined time.
After this time the user need to do another validation to get more time to work.
I want to protect my program being disabled by the user after he gets authenticated.

Thanks
0
Comment
Question by:jclobocar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 26

Accepted Solution

by:
EddieShipman earned 100 total points
ID: 20368867
Well, you could create a screen shot of the desktop and put it in a borderless form and show that form on top of everything then popup a system modal window asking for the login credentials.
0
 
LVL 21

Expert Comment

by:ziolko
ID: 20371941
>>- After logging to Windows XP it must be the first program to run.

that's touhg since some services are starting during system startup

>> I want to protect my program being disabled by the user after he gets authenticated.

this is gonna be easier you can catch WM_CLOSE and return non-zero value but this will prevent only gracefull shutdown user always can run task manager and kill process.

In general the best solution for your problem would be creating your own GINA DLL (just like netware does) but this is hell lot of code

ziolko.
0
 
LVL 1

Author Comment

by:jclobocar
ID: 20372329
Where do I put in the information to start my program?
Is there an way of hidding my process in the task list?
How machines at cyber cafes does something like what I want?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 26

Expert Comment

by:EddieShipman
ID: 20373419
Most of them write GINAs. There is Delphi GINA code here:
http://knightgina.sourceforge.net/
0
 
LVL 5

Expert Comment

by:Steven-Fernandez
ID: 20476751
If you are the only user in XP you don't get the lock option.

This is a simple trick

Part 1:

Create a shortcut:

View Properties:

Change target to:

%windir%\system32\rundll32.exe user32.dll, LockWorkStation

Place it where ever you want.

Part2:

Add ShellApi to your uses section

 ShellExecute(0,
               nil,
               'c:\thelinkpath\lockit.lnk',
               nil,
               nil,
               SW_SHOWNORMAL);

This will lock the desktop on XP even if the option is not available.

Hope this helps.
0
 
LVL 5

Expert Comment

by:Steven-Fernandez
ID: 20644386
Did you try. I use it myself and it works perfectly.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month6 days, 6 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question