|
-
December 25th, 1999, 04:58 PM
#1
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!
-
March 3rd, 2000, 10:32 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|