by Karthikeyan (187 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th January 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Protect your application to run if renamed.No API
'include this code in form_load
Private Sub Form_Load()
If App.EXEName <> "RESTRICTCPL" Then
MsgBox "Sorry I cannot run this program unless you name it as RestrictCPL.exe"
End
End If
End Sub