Click to See Complete Forum and Search --> : Using Windows Screen Saver Passwords, with VB
December 25th, 1999, 03:58 PM
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!
sonman
March 3rd, 2000, 09:32 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.