GFRegShellInfo/Testfrm.frm
VERSION 5.00
Begin VB.Form Testfrm
Caption = "Form1"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 465
ClientWidth = 4635
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 4635
StartUpPosition = 3 'Windows‑Standard
Begin VB.CommandButton Command3
Caption = "Command3"
Height = 406
Left = 1288
TabIndex = 2
Top = 2128
Width = 1638
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 406
Left = 1288
TabIndex = 1
Top = 2632
Width = 1635
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 406
Left = 3024
TabIndex = 0
Top = 2632
Width = 1575
End
End
Attribute VB_Name = "Testfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'(c)2001, 2003 by Louis.
Private Sub Command1_Click()
'on error resume next
Dim RegShellNumber As Integer
Dim RegShellDescriptionArray() As String
Dim RegShellCommandArray() As String
Dim Temp As Long
'begin
Debug.Print GFRegShellInfo_GetRegShellInfo(HKEY_CLASSES_ROOT, Rmod.RegGetKeyValue(HKEY_CLASSES_ROOT, ".mp3", ""), _
RegShellNumber, RegShellDescriptionArray(), RegShellCommandArray())
For Temp = 1 To RegShellNumber
Debug.Print "ACTION: " + RegShellDescriptionArray(Temp)
Debug.Print "COMMAND: " + RegShellCommandArray(Temp)
Next Temp
End Sub
Private Sub Command2_Click()
'on error resume next
Call GFRegShellInfo_CreateDirectoryAction("Browse with GFRegShellInfo", "GFRegShellInfo.Open", "Notepad.exe ""%1""")
End Sub
Private Sub Command3_Click()
'on error resume next
Call GFRegShellInfo_RemoveDirectoryAction("Browse with GFRegShellInfo", "GFRegShellInfo.Open", "Notepad.exe ""%1""")
End Sub
[END OF FILE]