VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

This very simple, yet useful code is a password program, using the registry to keep the password. S

Evil X Genie  (1 Submission)   Registry   VB 6.0   Unknown Difficulty   Mon 11th November 2002   Mon 8th February 2021

This very simple, yet useful code is a password program, using the registry to keep the password. So everytime you open the program, it will

API Declarations


'PLACE ALL THIS INTO A NEW MODULE or IN Declarations OF YOUR FORM

Public Sub CreateKey(Folder As String, Value As String)

Dim b As Object
On Error Resume Next
Set b = CreateObject("wscript.shell")
b.RegWrite Folder, Value

End Sub

Public Sub CreateIntegerKey(Folder As String, Value As Integer)

Dim b As Object
On Error Resume Next
Set b = CreateObject("wscript.shell")
b.RegWrite Folder, Value, "REG_DWORD"


End Sub

Public Function ReadKey(Value As String) As String

'READ FROM WINDOWS REGISTRY
'.........................
Dim b As Object
On Error Resume Next
Set b = CreateObject("wscript.shell")
r = b.RegRead(Value)
ReadKey = r
End Function


Public Sub DeleteKey(Value As String)
'DELETE VALUES FROM WINDOWS REGISTRY
'-----------------------------------
Dim b As Object
On Error Resume Next
Set b = CreateObject("Wscript.Shell")
b.RegDelete Value
End Sub


Rate This very simple, yet useful code is a password program, using the registry to keep the password. S (2(2 Vote))
This very simple, yet useful code is a password program, using the registry to keep the password. S.bas

This very simple, yet useful code is a password program, using the registry to keep the password. S Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters