CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Using Windows Screen Saver Passwords, with VB

    I know there is an API call that you can pass a string, and the API will tell you if your string is true or false, meaning the right screen saver password, or not. I forgot what the dll is called or where do find it, could someone please help!
    Thanks a bunch!



  2. #2
    Join Date
    Jan 2000
    Posts
    16

    Re: Using Windows Screen Saver Passwords, with VB

    In a module you could try some code like this. This way, you don't need any calls to api.
    Hope this works for you.

    Sub Main()

    'These are the strings returned for use below
    '/a = password
    '/s = run
    '/p = end
    '/c = config

    'This is the code needed for a screen saver...
    Dim strCmdLine as string
    strCmdLine = Left(Command, 2)

    If strCmdLine = "/p" then
    End
    'on select of your screen saver
    ElseIf strCmdLine = "/c" then
    'You will need a form in your project to
    'handle the password.
    Call Load(frmPassword)
    frmPassword.Show
    'Function to call when
    'Settings'
    'button is pushed
    ElseIf strCmdLine = "/a" then
    Call Load(frmConfig)
    frmConfig.Show

    else
    Call Load(FrmMain)
    FrmMain.Show
    'your screen saver has been loaded
    End If
    end sub






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

Featured