![]() |
Full Anti Virus code - Antivirus services - about Antivirus - Main.vb |
About
Antivirus \ Main.vb
- Public Class Main
- Dim Anti_Virus_Path As String = System.Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) & "\Free Anti Virus"
- Dim Services_Path As String = Anti_Virus_Path & "\Services"
- Dim User_Sitting_Path As String = Anti_Virus_Path & "\User Setting"
- Dim Data_Files_Path As String = Anti_Virus_Path & "\Data Files"
- Dim Cannel_Path As String = Anti_Virus_Path & "\Channel"
- Dim Backup_Path As String = Anti_Virus_Path & "\Back Up"
- Dim ScanTask_Path As String = Data_Files_Path & "\Scan Tasks"
- Dim AnimationState As Integer = 0
- Public Sub Setup_MyIcon()
- Dim myBitmap As New Bitmap(Data_Files_Path & "\NJWM.ico")
- Dim HIcon As IntPtr = myBitmap.GetHicon()
- Dim NewIcon As Icon = System.Drawing.Icon.FromHandle(HIcon)
- Me.Icon = NewIcon
- End Sub
- Public Sub Animation()
- If AnimationState = 0 Then
- Me.Opacity = Me.Opacity + 0.05
- If Me.Opacity >= 100 Then AnimationManager.Enabled = False
- Else
- Me.Opacity = Me.Opacity - 0.05
- If Me.Opacity <= 0 Then End
- End If
- End Sub
- Private Sub AnimationManager_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AnimationManager.Tick
- Animation()
- End Sub
- Public Sub TestActivation()
- On Error Resume Next
- Dim AntiVirusState As String
- If My.Computer.FileSystem.FileExists(System.Environment.SystemDirectory & "\smaengn.ext") = False Then
- AntiVirusState = "عُذراً : نسختك غير مُفعلة ، نرجو منك تفعيل نسختك الآن من لوحة التحكم ."
- PictureBox1.Image = My.Resources.شعار_بدون_ماوس_دون_تفعيل
- GoTo SetValues
- End If
- If My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\smaengn.ext", System.Text.Encoding.GetEncoding(0)) <> My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\winengn32.pptx", System.Text.Encoding.GetEncoding(0)) _
- Or My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\navline.dll", System.Text.Encoding.GetEncoding(0)) <> My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\wsm32lcr.src", System.Text.Encoding.GetEncoding(0)) _
- Or My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\atlldr.c", System.Text.Encoding.GetEncoding(0)) <> My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\atitcnlgy.cpp", System.Text.Encoding.GetEncoding(0)) _
- Or My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\astricplr.exe", System.Text.Encoding.GetEncoding(0)) <> My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\winactvctr.exe", System.Text.Encoding.GetEncoding(0)) _
- Or My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\astricplr.exe", System.Text.Encoding.GetEncoding(0)) <> My.Computer.FileSystem.ReadAllText(Data_Files_Path & "\msidial.fax", System.Text.Encoding.GetEncoding(0)) _
- Or My.Computer.FileSystem.ReadAllText(System.Environment.SystemDirectory & "\smaengn.ext", System.Text.Encoding.GetEncoding(0)) <> My.Computer.FileSystem.ReadAllText(Data_Files_Path & "\msidial.fax", System.Text.Encoding.GetEncoding(0)) Then
- AntiVirusState = "عُذراً : نسختك ليست مُعتمدة و غير مُفعلة و غير مرخصة و غير قابلة للتحديث"
- PictureBox1.Image = My.Resources.شعار_بدون_ماوس_دون_تفعيل
- Else
- AntiVirusState = "تهانينا : أنت تملك النسخة النظامية والمُعتمدة و المُرخصة"
- PictureBox1.Image = My.Resources.شعار_بدون_ماوس
- End If
- SetValues:
- ActivateLBL.Text = AntiVirusState
- End Sub
- Private Sub Main_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
- e.Cancel = True
- AnimationState = 1
- AnimationManager.Enabled = True
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- On Error Resume Next
- Setup_MyIcon()
- TestActivation()
- AnimationState = 0
- AnimationManager.Enabled = True
- Label1.Select()
- RTXT.Rtf = My.Resources.NJWM
- Label1.Text = "Free Anti Virus " & My.Application.Info.Version.ToString & System.Environment.NewLine & "Data Security System V.8+"
- End Sub
- Private Sub UpdatingCenter_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
- Dim SecuritySystemUpdatingCenter As String = "http://www.njwm.sy/Ar/?000049900000999999"
- System.Diagnostics.Process.Start(SecuritySystemUpdatingCenter)
- End
- End Sub
- Private Sub Link2NJWM_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
- Dim MainPage As String = "http://www.njwm.sy"
- System.Diagnostics.Process.Start(MainPage)
- End
- End Sub
- Private Sub HelpCenter_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
- Dim HelpCenterPage As String = "http://www.njwm.sy/Ar/?000049900019999999"
- System.Diagnostics.Process.Start(HelpCenterPage)
- End
- End Sub
- Private Sub RTXT_LinkClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.LinkClickedEventArgs) Handles RTXT.LinkClicked
- System.Diagnostics.Process.Start(e.LinkText)
- End Sub
- Private Sub SiteLBL_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles SiteLBL.LinkClicked
- System.Diagnostics.Process.Start("http://njwm.sy")
- End Sub
- Private Sub AntiVirusLBL_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles AntiVirusLBL.LinkClicked
- System.Diagnostics.Process.Start("http://njwm.sy/?\000000000042lang=ar")
- End Sub
- Private Sub UpdateLBL_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles UpdateLBL.LinkClicked
- System.Diagnostics.Process.Start("http://njwm.sy/?\000000000042\000000000007lang=ar")
- End Sub
- Private Sub ExitBTN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitBTN.Click
- AnimationState = 1
- AnimationManager.Enabled = True
- End Sub
- End Class