|
-
Jun 12th, 2005, 09:50 PM
#1
Thread Starter
Fanatic Member
Registry Problem
I m currently developing a program which should lock screen and unlock it.
User can be added by Admin and user can change his/her password.
And i was using Registry for storing the passwords.but now Administrator has restricted that Registry cannot be manipulated..
What is another idea to do that ...........?
-
Jun 12th, 2005, 10:00 PM
#2
Re: Registry Problem
You could use the API
VB Code:
Option Explicit
Private Declare Function LockWorkStation Lib "user32.dll" () As Long
Private Sub Command1_Click()
LockWorkStation
End Sub
-
Jun 12th, 2005, 10:09 PM
#3
Thread Starter
Fanatic Member
Re: Registry Problem
Cogratulations DG
u have made a mark 10k posts
No i do not want to use this API because i would like to run screen saver and some other options can be considered but this API will end the game
so try to give me clue about solving Registry Problem.
-
Jun 12th, 2005, 10:14 PM
#4
Re: Registry Problem
You can just shell the screensaver's .scr file to start the screensaver
if it is locked with password, then users or admins can unlock it
-
Jun 12th, 2005, 10:20 PM
#5
Thread Starter
Fanatic Member
Re: Registry Problem
nops what if laterly i have to add some other functionality to my program
because i know this API is not right solution...
so if u can tell me how to solve registry problem.
-
Jun 12th, 2005, 10:42 PM
#6
Re: Registry Problem
Store teh passwords in an encrypted file?
-
Jun 12th, 2005, 10:56 PM
#7
Thread Starter
Fanatic Member
Re: Registry Problem
hmm it could be good choice...
but y i cannot use Registry ...?
-
Jun 12th, 2005, 10:59 PM
#8
Re: Registry Problem
Well you said that your admin has prevented you from accessing the registry. Although I find that somewhat hard to believe considering almost every application has to be able access the registry, its how it is and you gotta live with it.
Having said that, I still find it hard to believe, you should at least be able to write to HKEY_CURRENT_USER.
-
Jun 12th, 2005, 11:03 PM
#9
Banned
Re: Registry Problem
Well code was posted to lock the screena nd suggestions were made to use files. So your goal is to store passwords right, and not lock the station? To store passwords use encrypted file like said. Another way to lock it is:
Shell "rundll32 user32.dll,LockWorkStation"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|