Results 1 to 9 of 9

Thread: Registry Problem

  1. #1

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

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

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Registry Problem

    You could use the API



    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function LockWorkStation Lib "user32.dll" () As Long
    4.  
    5. Private Sub Command1_Click()
    6.     LockWorkStation
    7. End Sub

  3. #3

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    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.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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

  5. #5

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    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.

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Registry Problem

    Store teh passwords in an encrypted file?

  7. #7

    Thread Starter
    Fanatic Member vbPoet's Avatar
    Join Date
    Feb 2005
    Location
    Searching ..
    Posts
    669

    Re: Registry Problem

    hmm it could be good choice...
    but y i cannot use Registry ...?

  8. #8
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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.

  9. #9
    Banned ThaRubby's Avatar
    Join Date
    Apr 2005
    Location
    127.0.0.1
    Posts
    356

    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
  •  



Click Here to Expand Forum to Full Width