Results 1 to 8 of 8

Thread: What exe in c:\windows\ is connected to wan? [Resolved]

  1. #1

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Resolved What exe in c:\windows\ is connected to wan? [Resolved]

    Hi all
    Is there any way that i could find out what are the .exe files,inside windows dir, that are connected to the wan?
    If was possible i would like to check were was the exe connected to, but that's not the most important.

    Last edited by TDQWERTY; Dec 26th, 2004 at 06:04 AM.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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:
    1. Option Explicit
    2.  
    3. Private Const NETWORK_ALIVE_LAN = &H1
    4. Private Const NETWORK_ALIVE_WAN = &H2
    5.  
    6. Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
    7.  
    8. Private Sub Command1_Click()
    9. Dim Ret As Long
    10.  
    11.     If IsNetworkAlive(Ret) = 0 Then
    12.         MsgBox "The local system is not connected to a network!"
    13.     Else
    14.         MsgBox "The local system is connected to a " & _
    15.                 IIf(Ret = NETWORK_ALIVE_WAN, "WAN", "LAN") & " network!"
    16.     End If
    17.  
    18. End Sub

  3. #3

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    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.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  6. #6

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    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?
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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?

  8. #8

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Resolved 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
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width