• Tidak ada hasil yang ditemukan

Anhar dan Hirin, A. M. 2009. Cara Mudah Membuat & Membasmi Virus Komputer. Kendal: Mediakita.

Hirin, A. M. 2010. Cara Praktis Membuat Antivirus Komputer. Jakarta Selatan: Mediakita.

Kusumo, Ario. Suryo. 2006. Pemrograman Visual Basic. Jakarta: Elex Media Komputindo.

Listing Program

Dim lAlpha As Integer

Frm startup

Private Sub chkUnclose_Click()

If chkUnclose.value = 1 Then Exit Sub End Sub

Private Sub Form_Activate() lblVersion = APP_VERSION App.Title = "Eagle Protector AV" App.TaskVisible = False

Where = GetSpecialfolder(CSIDL_STARTUP Or CSIDL_APPDATA) ext = "*.*" Buffering = False ' ProcedureScan Looping ' FadeIn Me lAlpha = 255 Tunggu 0.5

If tmrLoad.Enabled = False Then tmrLoad.Enabled = True Else

tmrLoad.Enabled = False End If

End Sub

Private Sub Form_Load() On Error Resume Next If App.PrevInstance Then

MsgBox "already runing in your system.", vbExclamation, "Eagle Protector AV"

End End If End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If chkUnclose.value = 0 Then Exit Sub

Cancel = 1 End Sub

Private Sub tmrFadeout_Timer() If lAlpha > 0 Then

DoEvents lAlpha = lAlpha - 5

MakeTransparent Me.hWnd, lAlpha Else lAlpha = 0 frmScanVirus.Show tmrFadeout.Enabled = False Unload Me End If End Sub

Private Sub tmrLoad_Timer() With progLoad

If .value < 100 Then DoEvents

.value = .value + 1 If .value = 30 Then

lblPercen.Caption = progLoad.value &" % Completed." lblLoad.Caption = "Eagle Protector AV."

Tunggu 2 End If

If .value = 60 Then

lblPercen.Caption = progLoad.value &" % Completed." lblLoad.Caption = "Configuring Database"

If Dir$(App.path & "\ansavcore.dll", vbArchive Or vbNormal Or vbHidden Or vbReadOnly Or vbSystem) = "" Then

If MsgBox(APP_PROGRAM & vbCrLf & "Error Detected :" & vbCrLf & vbCrLf & " - ansavcore.dll not found", vbCritical + vbOKOnly, "Critical Error") = vbOK Then

ANSAVEnable = False End If

Else

Shell "regsvr32 /s" & "ansavcore.dll", vbHide ANSAVEnable = True

End If Tunggu 2 End If

If .value = 90 Then

lblPercen.Caption = progLoad.value &" % Completed." lblLoad.Caption = "Scanning Processes And Startup" ScanProcess False

Tunggu 2

lblProcess.Caption = "" End If

lblPercen.Caption = progLoad.value &" % Completed." lblLoad.Caption = "Building Main Application."

Tunggu 1 tmrLoad.Enabled = False tmrFadeout.Enabled = True Tunggu 2.5 With frmScanVirus .Refresh .Enabled = True .Show End With End If End If End With With progLoad If .value < 30 Then .value = .value + 3

lblPercen.Caption = .value &" % Completed."

lblLoad.Caption = "Please wait Eagle Protector AV is configuring environment."

Tunggu 0.1

ElseIf .value = 30 Then

lblPercen.Caption = .value &" % Completed." .value = 50

ElseIf .value >= 50 And .value < 60 Then .value = .value + 2

lblPercen.Caption = .value &" % Completed." lblLoad.Caption = "Configuring Database" HitDatabase

Tunggu 0.1

ElseIf .value = 60 Then Tunggu 1

.value = 80

lblPercen.Caption = .value &" % Completed."

lblLoad.Caption = "Scanning Processes And Startup" ScanProcess False

Tunggu 1

lblProcess.Caption = "" ElseIf .value = 80 Then .value = 100

lblPercen.Caption = .value &" % Completed." lblLoad.Caption = "Building Main Application." Tunggu 2

ElseIf .value = 100 Then tmrLoad.Enabled = False FadeOut Me

tmrFadeout.Enabled = True Unload Me

Tunggu 2 With frmScanVirus .Refresh .Enabled = True .Show End With End If End With End Sub Frm signature

Private Sub cmdAddDB_Click() Dim I As Long

If txtVirusName.Text = "" Then

Call MsgBox("Please add virus name !", vbExclamation + vbOKOnly, "Generate Virus Signature")

Exit Sub End If

If MsgBox("Are you sure you want to" & vbCrLf & "add virus signature to this file?", vbQuestion + vbYesNo, "Add Virus Signature") = vbYes Then

Select Case cboType.ListIndex Case 0 VirType = "WORM." Case 1 VirType = "TH." Case 2 VirType = "WGEN." Case 3 VirType = "VGEN." Case 4 VirType = "W32." Case 5 VirType = "BSC." End Select

SignTemp = VirType &UCase((txtVirusName.Text)) + ";" + (lblCRCSTR.Caption) ExternalDatabase LoadExternalDatabase (False) HitDatabase ClearStatus End If End Sub

Private Sub ClearStatus() txtPath.Text = "" txtVirusName.Text = "" cboType.Text = "" lblFileName.Caption = " " lblFileSize.Caption = " " lblCRCSTR.Caption = " " cmdAddDB.Enabled = False txtVirusName.Enabled = False cboType.Enabled = False End Sub

Private Sub cmdClear_Click() ClearStatus

End Sub

Private Sub cmdClose_Click() Unload Me

frmScanVirus.Enabled = True End Sub

Private Sub cmdOpen_Click() On Error GoTo ErrHandle Dim sFilename As String

sFilename = ShowOpen(Me.hWnd, "Generate Virus Signature", "Suspected File|*.exe;*.com;*.vbs;*.bat;*.cmd;*.ocx;*.dll;*.scr;*.inf;*.*")

SetFileAttributes sFilename, FILE_ATTRIBUTE_NORMAL

If sFilename <> "" And (Int((FileLen(sFilename) / 1024) * 100 + 0.5) / 100) >= 1 Then

txtPath.Text = sFilename

lblFileName.Caption = Mid$(txtPath.Text, InStrRev(txtPath.Text, Chr$(92)) + 1)

lblFileSize.Caption = Int((FileLen(txtPath.Text) / 1024) * 100 + 0.5) / 100 & " KB" 'Format(FileLen(Text7.Text) / 1024, "###,####") & " KB" lblCRCSTR.Caption = GetChecksum(txtPath.Text) txtVirusName.Text = "" cmdAddDB.Enabled = True txtVirusName.Enabled = True cboType.Enabled = True Else

MsgBox "Generate Virus Signature Invalid!" & vbCrLf & "Minimum accepted file size is 1 KB", vbOKOnly + vbExclamation, APP_PROGRAM End If

ErrHandle: End Sub

Frmscanvirus

'Eagle Protector AV - A N T I V I R U S

Private m_hMod As Long Dim Hours As String Dim Minutes As String Dim Seconds As String Dim MilliSec As String

Dim ElapsedMilliSec As Long Dim TotalElapsedMilliSec As Long Dim StartTickCount As Long Dim Seal As New clsHuffman Dim WhereMine As String Dim lAlpha As Integer

Private Declare Function GetTickCount Lib "kernel32" () As Long Private Sub cboStartup_Click()

GetAllRun

cmdDelAutorun.Enabled = False txtPathStartup.Text = ""

End Sub

Private Sub chkCleanAll_Click() If chkCleanAll.value = 1 Then DeleteAll = True Else DeleteAll = False End If End Sub

Private Sub chkFixRegistry_Click() If chkFixRegistry.value = 1 Then RegistryFix = True Else RegistryFix = False End If End Sub

Private Sub chkHideTask_Click() If chkHideTask.value = 1 Then

lTuan = GetWindow(Me.hWnd, GW_OWNER) ShowWindow lTuan, SW_HIDE

Else

App.Title = " "

ShowWindow lTuan, SW_SHOW End If

End Sub

Private Sub chkOnTop_Click() If chkOnTop.value = 1 Then AlwaysOnTop Me.hWnd, True Else

AlwaysOnTop Me.hWnd, False End If

End Sub

Private Sub chkSafeMode_Click() On Error Resume Next

If chkSafeMode.value = 1 Then

Reg.SaveSettingLong HKEY_CURRENT_USER, "Software\Ermal Gjermeni\Av Super Protector\Console", "SafeMode", 1

Reg.SaveSettingString HKEY_LOCAL_MACHINE,

"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell", "explorer.exe "& Chr(34) & App.path & "\Av Super Protector.exe" & Chr(34) Else

Reg.SaveSettingLong HKEY_CURRENT_USER, "Software\Ermal Gjermeni\Av Super Protector\Console", "SafeMode", 0

Reg.DeleteValue HKEY_LOCAL_MACHINE,

"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "Shell" chkSafeMode.value = 0

End If End Sub

Private Sub chkSound_Click() If chkSound.value = 1 Then

Reg.SaveSettingLong HKEY_CURRENT_USER, "Software\Ermal Gjermeni\Av Super Protector\Console", "SoundWarning", 1

Else

Reg.SaveSettingLong HKEY_CURRENT_USER, "Software\Ermal Gjermeni\Av Super Protector\Console", "SoundWarning", 0

End If

'SoundWarning

If Reg.GetSettingLong(HKEY_CURRENT_USER, "Software\Ermal Gjermeni\Av Super Protector\Console", "SoundWarning", 1) = 1 Then chkSound.value = Checked

Else

chkSound.value = Unchecked End If

End Sub

Private Sub chkT_Click(Index As Integer) On Error Resume Next

If cekLoad = True Then CekSetting = True

cmdApplyTweak.Enabled = True cmdApplyTweak.Caption = "Apply" End If

End Sub

Private Sub chkTrans_Click() If chkTrans.value = 1 Then SetTrans Me, 125 Else chkTrans.value = 0 SetTrans Me, 255 End If End Sub

Private Sub chkUnclose_Click()

If chkUnclose.value = 1 Then Exit Sub End Sub

Private Sub cleen_Click(Index As Integer)

'ShellExecute Me.hwnd, vbNullString, "rcleanmgr.exe", vbNullString, "C:\", 1 End Sub

Private Sub cmdApplyTweak_Click() SaveApp

cmdApplyTweak.Enabled = False

cmdApplyTweak.Caption = "No Changes" LockWindowUpdate (GetDesktopWindow()) ForceCacheRefresh

LockWindowUpdate (0) End Sub

Private Sub cmdAutorun_Click()

If MsgBox("Are you sure to delete autorun.inf in all drives ?", vbYesNo + vbQuestion, APP_PROGRAM & " /Delete Autorun") = vbYes Then

ClearAuto

Call MsgBox("All autorun.inf was deleted !", vbYesNo + vbInformation, APP_PROGRAM)

End If End Sub

Private Sub cmdBrowse_Click()

Where = BrowseForFolder(Me.hWnd, "Select Drive or Directory to scan :") If Len(Where) > 0 Then

txtDirPath = Where End If

End Sub

Private Sub cmdBrowse_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdBrowse.Tag End Sub

Private Sub cmdCekAll_Click() Dim I As Integer

On Error Resume Next With chkT For I = 0 To .count .Item(I).value = 1 Next I End With End Sub

Private Sub cmdClearAll_Click() Dim I As Integer

On Error Resume Next With chkT For I = 0 To .count .Item(I).value = 0 Next I End With End Sub

Private Sub cmdDelAutorun_Click()

If MsgBox("Are you sure..?", vbQuestion + vbYesNo, "/Delete Startup") = vbYes Then ClearAutorun cmdDelAutorun.Enabled = False txtPathStartup.Text = "" End If End Sub

If MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, APP_PROGRAM) = vbYes Then

' MsgBox "Thanks For Using " & APP_PROGRAM, vbSystemModal + vbInformation, APP_PROGRAM tmrFadeout.Enabled = True SystrayOff Me frmWait.Show vbModal FadeOut Me End End If End Sub

Private Sub cmdExit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdExit.Tag End Sub

Private Sub cmdFixReg_Click() If tmrFix.Enabled = False Then

If MsgBox("Are you sure want to fix the registry ?", vbExclamation + vbYesNo, "- Fix Registry") = vbYes Then

tmrFix.Enabled = True End If

Else

tmrFix.Enabled = False

txtStatus.Text = "Your Computer Is in Good Conditions" End If

End Sub

Private Sub cmdMenuAbout_Click() frmQuarantine.Show

Me.Enabled = False End Sub

Private Sub cmdMenuAbout_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdMenuAbout.Tag End Sub

Private Sub cmdMenuOptions_Click()

M_Scan (False): M_Options (True): M_Process (False): M_Tweak (False): M_Startup (False)

End Sub

Private Sub cmdMenuOptions_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdMenuOptions.Tag End Sub

Private Sub cmdMenuProcess_Click()

M_Scan (False): M_Options (False): M_Process (True): M_Tweak (False): M_Startup (False)

End Sub

Private Sub cmdMenuProcess_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdMenuProcess.Tag End Sub

Private Sub cmdMenuScan_Click()

M_Scan (True): M_Options (False): M_Process (False): M_Tweak (False): M_Startup (False)

End Sub

Private Sub cmdMenuScan_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdMenuScan.Tag End Sub

Private Sub cmdMenuStartup_Click()

M_Scan (False): M_Options (False): M_Process (False): M_Tweak (False): M_Startup (True)

End Sub

Private Sub cmdMenuStartup_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdMenuStartup.Tag End Sub

Private Sub cmdMenuTweakReg_Click()

M_Scan (False): M_Options (False): M_Process (False): M_Tweak (True): M_Startup (False)

End Sub

Private Sub cmdMenuTweakReg_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdMenuTweakReg.Tag End Sub

Private Sub cmdPause_Click() StopScan = False PauseScan = True tmrStatus.Enabled = False cmdPause.Enabled = False cmdScan.Enabled = True End Sub

Private Sub cmdPause_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdPause.Tag End Sub

Private Sub cmdQuarantine_Click() frmQuarantine.Show

Me.Enabled = False End Sub

Private Sub cmdQuarantine_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdQuarantine.Tag End Sub

Private Sub cmdRefAutorun_Click() GetAllRun

cmdDelAutorun.Enabled = False txtPathStartup.Text = ""

End Sub

Private Sub cmdScan_Click()

If Mid$(txtDirPath, 2, 1) <> ":" Then

MsgBox "Path not found!", vbExclamation, APP_PROGRAM Exit Sub

End If

If StopButton = True Then PauseScan = False

cmdPause.Enabled = True cmdScan.Enabled = False

TotalElapsedMilliSec = TotalElapsedMilliSec + (GetTickCount() - StartTickCount)

TotalElapsedMilliSec = 0 tmrStatus.Enabled = True Else

LogFile "Scanning in " & txtDirPath lstDetection.ListItems.Clear lblFileScan.Caption = ": 0" lblVirusDetected.Caption = ": 0" lblVirusClean.Caption = ": 0" StartTickCount = GetTickCount() tmrStatus.Enabled = False CheckItem ext = cboExt.Text cmdPause.Enabled = True cmdStop.Enabled = True ProcedureScan

End If End Sub

Private Sub cmdScan_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdScan.Tag End Sub

Private Sub cmdSetAttrib_Click() frmSetAttrib.Show

' Me.Enabled = False Me.Hide

End Sub

Private Sub cmdSignature_Click() frmSignature.Show

Me.Enabled = False End Sub

Private Sub cmdSignature_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdSignature.Tag End Sub

Private Sub cmdStop_Click() If tmrStatus = True Then StopScan = True cmdScan.Enabled = True cmdPause.Enabled = True cmdStop.Enabled = True cmdBrowse.Enabled = True Else PauseScan = True cmdScan.Enabled = True cmdPause.Enabled = True cmdStop.Enabled = True cmdBrowse.Enabled = True Buka End If End Sub

Private Sub cmdStop_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdStop.Tag End Sub

Dim sTitle As String Dim sMessage As String

sTitle = APP_PROGRAM & " V3"

sMessage = "Copyright © Ermal Gjermeni Softwares 2010" & vbCrLf & _ vbCrLf& _

"* App Version : " & APP_VERSION & vbCrLf & _ "* Current Build : " & CURRENT_BUILD & vbCrLf & _ "* Processes : " & PROCESSESES & vbCrLf & _

"* Scan Engine : " & ENGINE_VERSION & vbCrLf & _ "* Tweak Registry : " & TWEAK_REG & vbCrLf & _

"* Virus Signature : " & VirusName.count & " Viruses" & vbCrLf & _ vbCrLf& _

"Click To Close" SystrayOn Me, sTitle

PopupBalloon Me, sMessage, sTitle, NIIF_INFO frmStartup.Visible = False With Me .Hide .Enabled = False .tmrFadeout = False End With End Sub

Private Sub cmdSystray_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

StatusBar1.Panels(1).Text = cmdSystray.Tag End Sub

Private Sub Form_Initialize()

m_hMod = LoadLibrary("shell32.dll") InitCommonControls

End Sub

Private Sub Form_Load() Me.Visible = False

If App.PrevInstance = True Then FreeLibrary m_hMod

MsgBox "Program Already Runing on Your Machine" End Unload Me Close End If PauseScan = False StopButton = False

StopScan = False LoadExternalDatabase True LoadVirusDatabase LoadBinaryIconCompare cekLoad = False CekSetting = False GetApp cekLoad = True GetAllRun lAlpha = 255 ' Self protection --- Me.Caption = "Av Super Protector" chkHideTask_Click

chkOnTop_Click

M_Scan (True): M_Options (False): M_Process (False): M_Tweak (False): M_Startup (False)

'FadeIn Me

cboExt.Text = "*.*" strUserCom = GetUserCom

MemoryInfo lblinfo(0), lblinfo(1), lblinfo(2), Frame15, lblinfo(4), lblinfo(5), lblinfo(6), lblinfo(7), lblinfo(8), lblinfo(9), ProgMemUsed, Me.StatusBar1 GetCPUInfo lblCPU, prgCPU, Me.StatusBar1

ViewProcess End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

Dim Action As Long

If Me.ScaleMode = vbPixels Then Action = X

Else

Action = X / Screen.TwipsPerPixelX End If

Select Case Action

Case WM_RBUTTONUP PopupMenu Menu End Select

End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) ' If chkUnclose.value = 0 Then Exit Sub

' Cancel = 1 End Sub

Private Sub Form_Terminate()

If MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, APP_PROGRAM) = vbYes Then

' MsgBox "Thanks For Using " & APP_PROGRAM, vbSystemModal + vbInformation, APP_PROGRAM tmrFadeout.Enabled = True SystrayOff Me frmWait.Show vbModal FadeOut Me End End If End Sub

Private Sub Form_Unload(Cancel As Integer)

If MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, APP_PROGRAM) = vbYes Then

' MsgBox "Thanks For Using " & APP_PROGRAM, vbSystemModal + vbInformation, APP_PROGRAM tmrFadeout.Enabled = True SystrayOff Me frmWait.Show vbModal FadeOut Me End End If End Sub

Private Sub how_Click() ' tutorial

MsgBox " To update this program is very easy." & vbCrLf & _

"1. Download the .TCM.rar (Virus Data Base)& Unrar it file" & vbCrLf & _ "2. EXIT Av Super Protector." & vbCrLf & _

"3. Put TCM file where the main program is installed." & vbCrLf & _

" Usually C:\Program Files\Ermal Gjermeni Softwares\Super Antivirus\" & vbCrLf & _

"4. Replace old file with ne new one..." & vbCrLf & _ "5. Run Super Antivirus again"

End Sub

Private Sub junk_Click()

ShellExecute Me.hWnd, vbNullString, nPath(App.path) & "\Clean temp.bat", vbNullString, "C:\", 1

End Sub

Private Sub Image1_Click() End Sub

End Sub

Private Sub lstDetection_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 2 Then If lstDetection.ListItems.count > 0 Then mnuFileLocation.Tag = lstDetection.SelectedItem.SubItems(1) PopupMenu mnuVirus End If End If End Sub

Private Sub lstStartup_Click() On Error Resume Next

List5.Selected(lstStartup.ListIndex) = True List6.Selected(lstStartup.ListIndex) = True txtPathStartup.Text = List5.Text

If txtPathStartup.Text <> "" Then cmdDelAutorun.Enabled = True End Sub

Private Sub lstView_Click()

Dim strFile As String, uProcess As PROCESSENTRY32 Dim hVer As VERHEADER

Dim fso As New FileSystemObject, FileInfo As file Dim strF As String

picIconP32.Cls

strFile = lstView.SelectedItem.SubItems(1) If strF <> strFile Then

On Error GoTo SalahProses Set FileInfo = fso.GetFile(strFile) GetVerHeader strFile, hVer Label8.Caption = "File" Label7.Caption = "Folder"

lblDescription.Caption = hVer.FileDescription lblCompany.Caption = hVer.CompanyName

lblFile.Caption = ": " & FileInfo.ShortName ' GetFileName(strFile) lblPath.Caption = ": " & FileInfo.ParentFolder ' GetFilePath(strFile) RetrieveIcon strFile, picIconP321, ricnLarge

Exit Sub End If

SalahProses:

MsgBox Err.Description &" "& " " & _

"or file has been deleted.", vbExclamation, "Warning" mnuRefresh_Click

End Sub

Private Sub lstView_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)

lstView.Sorted = True

lstView.SortKey = ColumnHeader.Index - 1 If lstView.SortOrder = lvwDescending Then lstView.SortOrder = lvwAscending

Else

lstView.SortOrder = lvwDescending End If

End Sub

Private Sub lstView_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)

On Error Resume Next If Button = 2 Then

If lstView.ListItems.count > 0 Then

mnuFindFile.Caption = "Find File Location..."

mnuFindFile.Tag = lstView.SelectedItem.SubItems(1) mnuSetPriority(1).Checked = False

mnuSetPriority(2).Checked = False mnuSetPriority(3).Checked = False mnuSetPriority(4).Checked = False Dim priHwnd As Long

priHwnd = GetPriority(CLng(lstView.SelectedItem.Tag)) Select Case priHwnd

Case REALTIME_PRIORITY_CLASS mnuSetPriority(1).Checked = True Case HIGH_PRIORITY_CLASS mnuSetPriority(2).Checked = True Case NORMAL_PRIORITY_CLASS mnuSetPriority(3).Checked = True Case IDLE_PRIORITY_CLASS mnuSetPriority(4).Checked = True End Select

PopupMenu mnuT End If

End If End Sub

Private Sub mnucheckweb_Click()

ShellExecute 0, "open", "http://www.e-gj-softwares.tk", vbNullString, vbNullString, 1 ' here is the style

End Sub

Private Sub me_Click() frmme.Show

frmScanVirus.Hide End Sub

Private Sub mnuCleanAllViri_Click() Dim lValue As Long

lValue = CheckVirus If lValue > 0 Then

If MsgBox("Are you sure want to clean selected object(s) ?", vbYesNo + vbQuestion, APP_PROGRAM) = vbYes Then

txtStatus.Text = "STATUS : Cleaning All Object(s)." CleanVirus

End If End If End Sub

Private Sub mnuControlPanel_Click()

ShellExecute Me.hWnd, vbNullString, "control.exe", vbNullString, "C:\", 1 End Sub

Private Sub mnuEndProcess_Click() Dim I As Integer

Dim Pesan As String, strFile As String

Dim fso As New FileSystemObject, FileName As file strFile = lstView.SelectedItem.SubItems(1)

Set FileName = fso.GetFile(strFile)

Pesan = "WARNING: Terminating a process can cause undesired" & vbCrLf & _

"results including loss of data and system instability. The" & vbCrLf & _ "process will not be given the chance to save its state or" & vbCrLf & _ "data before it is terminated." & vbCrLf & vbCrLf & _

"Are you sure you want to terminate process" & " " & FileName.ShortName

If MsgBox(Pesan, vbYesNo + 48, APP_PROGRAM & " /Confirm" & Chr(0)) = vbYes Then Dim H As Long H = lstView.SelectedItem.Index For I = 1 To lstView.ListItems.count If lstView.ListItems(I).Selected Then Call KillProcessById(CLng(lstView.ListItems(I).Tag)) Sleep 100 End If Next I End If ViewProcess End Sub

Private Sub mnuEx_Click()

If MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, APP_PROGRAM) = vbYes Then

MsgBox "Thanks for using "& APP_PROGRAM, vbSystemModal + vbInformation, APP_PROGRAM tmrFadeout.Enabled = True frmWait.Show vbModal FadeOut Me End End If End Sub

Private Sub mnuExplorer_Click()

ShellExecute Me.hWnd, vbNullString, "explorer.exe", vbNullString, "C:\", 1 End Sub

Private Sub mnufileinfo_Click() frmWait.Show vbModal

frmModule.Show vbModal End Sub

Private Sub mnuFileLocation_Click() On Error Resume Next

If Trim(mnuFileLocation.Tag) <> "" Then

Shell "explorer.exe /select," & mnuFileLocation.Tag, 1 End If

End Sub

Private Sub mnuFindFile_Click() frmWait.Show vbModal

If Trim(mnuFindFile.Tag) <> "" Then

Shell "explorer.exe /select, "& mnuFindFile.Tag, 1 End If

End Sub

Private Sub mnuGP_Click() frmGPL.Show

End Sub

Private Sub mnuGR_Click() Me.Enabled = False frmAbout.Show End Sub

Private Sub mnuNewProcess_Click() Dim sTitle As String, sPrompt As String

sTitle = APP_PROGRAM & " " & "/New Process "

sPrompt = "Type the name of a program, folder, document, or Internet resource." If IsWinNT Then

SHRunDialog Me.hWnd, 0, 0, StrConv(sTitle, vbUnicode), StrConv(sPrompt, vbUnicode), 0

Else

SHRunDialog Me.hWnd, 0, 0, sTitle, sPrompt, 0 End If

End Sub

Private Sub mnuT_Click()

M_Scan (False): M_Options (False): M_Process (True): M_Tweak (False): M_Startup (False)

End Sub

Private Sub mnuPriority_Click(Index As Integer) On Error Resume Next

Dim priHwnd As Long Dim insel As Long Select Case Index Case 1

insel = REALTIME_PRIORITY_CLASS Case 2

insel = HIGH_PRIORITY_CLASS Case 3

insel = NORMAL_PRIORITY_CLASS Case 4 insel = IDLE_PRIORITY_CLASS End Select Dim I As Integer If insel <> 0 Then For I = 1 To lstView.ListItems.count If lstView.ListItems(I).Selected Then

priHwnd = OpenProcess(PROCESS_SET_INFORMATION, False, CLng(lstView.ListItems(I).Tag))

SetPriorityClass priHwnd, insel CloseHandle priHwnd

End If Next I End If End Sub

Private Sub mnuProperties_Click() On Error Resume Next

Dim I As Integer

For I = 1 To lstView.ListItems.count If lstView.ListItems(I).Selected Then

Dokumen terkait