Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Lock Windows XP through my application

Posted on 2007-11-28
6
Medium Priority
?
811 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 400 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

It is a common problem that often server suffers from the lack of space on system volume. Old servers or new ones from vendors come with preformatted small volume - 5-6GB in total and after installing updates or applications the free space on system…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
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…
Suggested Courses

730 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