GFShellRegistration/Testfrm.frm
VERSION 5.00
Begin VB.Form Testfrm
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4635
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4635
StartUpPosition = 3 'Windows‑Standard
Begin VB.CommandButton Command5
Caption = "Get Long File Name"
Height = 315
Left = 2520
TabIndex = 4
Top = 1620
Width = 2055
End
Begin VB.CommandButton Command4
Caption = "Get Short File Name"
Height = 315
Left = 2520
TabIndex = 3
Top = 1260
Width = 2055
End
Begin VB.CommandButton Command3
Caption = "Get WinTempDir"
Height = 315
Left = 2520
TabIndex = 2
Top = 2100
Width = 2055
End
Begin VB.CommandButton Command2
Caption = "Create Link"
Height = 315
Left = 2520
TabIndex = 1
Top = 2460
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "Register File Type"
Height = 315
Left = 2520
TabIndex = 0
Top = 2820
Width = 2055
End
Begin VB.Label Label1
Caption = "HTML!"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = ‑1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 2520
TabIndex = 5
Top = 960
Width = 2055
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 by Louis.
Private Sub Command1_Click()
'on error resume next
Debug.Print GFRegisterFileType(".uni", "Uninstaller.UninstallFile", "Installer Uninstall File", "c:\windows\notepad.exe")
End Sub
Private Sub Command2_Click()
'on error resume next
Call GFCreateShellLink("\Schrott 2000", "Link to Calc", GFShellRegistration_GetWinDir + "Calc.exe")
End Sub
Private Sub Command3_Click()
'on error resume next
Debug.Print GFShellRegistration_GetWinTempDir
End Sub
Private Sub Command4_Click()
'on error resume next
Debug.Print GFGetShortFileName("C:\PROGRAMME\")
End Sub
Private Sub Command5_Click()
'on error resume next
Debug.Print GFGetLongFileName("C:\EIGENE~1\Unbekannt.bmp")
End Sub
Private Sub Label1_Click()
'on error resume next
Dim ProgramDirectory As String
'preset
ProgramDirectory = App.Path
If Not (Right$(ProgramDirectory, 1) = "\") Then ProgramDirectory = ProgramDirectory + "\"
'begin
Debug.Print GFShellExecute(Me.hwnd, ProgramDirectory + "jack.html", "", ProgramDirectory)
End Sub
[END OF FILE]