|
-
Dec 24th, 2004, 09:07 PM
#1
Thread Starter
Fanatic Member
-
Dec 24th, 2004, 09:26 PM
#2
Re: What exe in c:\windows\ is connected to wan?
You question sounds a bit strange to me: you may check if computer is connected but files ???
VB Code:
Option Explicit
Private Const NETWORK_ALIVE_LAN = &H1
Private Const NETWORK_ALIVE_WAN = &H2
Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
Private Sub Command1_Click()
Dim Ret As Long
If IsNetworkAlive(Ret) = 0 Then
MsgBox "The local system is not connected to a network!"
Else
MsgBox "The local system is connected to a " & _
IIf(Ret = NETWORK_ALIVE_WAN, "WAN", "LAN") & " network!"
End If
End Sub
-
Dec 24th, 2004, 09:36 PM
#3
Thread Starter
Fanatic Member
Re: What exe in c:\windows\ is connected to wan?
yes, it's that what i wanted, what files are connected to inet...
i'm trying to make some kind of watcher for me to keep me informed on what files are trying to connect to external addresses. I really need this...and if possible to get the information on were is the file trying to connect to.
-
Dec 25th, 2004, 04:14 PM
#4
Re: What exe in c:\windows\ is connected to wan?
that's what the Windows Firewall does, isn't it? You have to allow access to individual programs so that they can access the internet.
-
Dec 25th, 2004, 04:33 PM
#5
Re: What exe in c:\windows\ is connected to wan?
How about what netstat gives you? You can use the -ano switch under
XP and -an for the rest. This will give you IP addresses local and remote for
your ports showing open connections.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 25th, 2004, 06:27 PM
#6
Thread Starter
Fanatic Member
Re: What exe in c:\windows\ is connected to wan?
That's almost what Windows Firewall from sp2 does dglienna, but i would like to make that in a program, not use what M$ already did, that way i wouldn't learn nothing right? 
I know that some sniffers can do that, but i dunno how to do it, that's why i asked some help to make that
Anyone more?
-
Dec 25th, 2004, 09:13 PM
#7
Re: What exe in c:\windows\ is connected to wan?
just pointing out that it is a very difficult project to undertake, and there are already programs out there that do it for you. good luck in your attempt.
did you take a look at RobDog's post?
-
Dec 26th, 2004, 06:01 AM
#8
Thread Starter
Fanatic Member
Re: What exe in c:\windows\ is connected to wan?
What post? I'v been looking on psc and i'v found something that may help me a bit: http://www.planet-source-code.com/vb...2F%5F576027112
I just need a bit of code from it and to check were the file is/were connected to, the file patch will be easy to find out.
Thanks for the help all
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|