Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. need experts help

need experts help

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jacal99
    wrote on last edited by
    #1

    Hi well i am meaking a software .... and i want to send an email through it ... yes i know the code to send an email ... but how can my software know's that weather the computer is connected with the internet ... because it will send email automactily after 5 minutes ... soo my question is that how my software know's that weather the computer is connected with internet... Best Regaurds. Mazhar Hussain

    A 1 Reply Last reply
    0
    • J jacal99

      Hi well i am meaking a software .... and i want to send an email through it ... yes i know the code to send an email ... but how can my software know's that weather the computer is connected with the internet ... because it will send email automactily after 5 minutes ... soo my question is that how my software know's that weather the computer is connected with internet... Best Regaurds. Mazhar Hussain

      A Offline
      A Offline
      Aryadip
      wrote on last edited by
      #2

      Hi, Checkout WinInet.dll ... a win32 dll ... It contains a method named GetConnectionState()...(if I'm not wrong)... Use this to verify whether the internet connection is live or not... For more info check out this link click here regards, Aryadip. Cheers !! and have a Funky day !!

      J 1 Reply Last reply
      0
      • A Aryadip

        Hi, Checkout WinInet.dll ... a win32 dll ... It contains a method named GetConnectionState()...(if I'm not wrong)... Use this to verify whether the internet connection is live or not... For more info check out this link click here regards, Aryadip. Cheers !! and have a Funky day !!

        J Offline
        J Offline
        jacal99
        wrote on last edited by
        #3

        Hi well as you say that it can be done by using winInet.dll ... i agree with you .... but i forgot to tell you that i am working in c# ... and can i get the same method in c#.... one more thing that is one of my friend tell me that you can do this by broadcasting ip address.... well what you say about this ....? Mazhar Hussain

        A 1 Reply Last reply
        0
        • J jacal99

          Hi well as you say that it can be done by using winInet.dll ... i agree with you .... but i forgot to tell you that i am working in c# ... and can i get the same method in c#.... one more thing that is one of my friend tell me that you can do this by broadcasting ip address.... well what you say about this ....? Mazhar Hussain

          A Offline
          A Offline
          Aryadip
          wrote on last edited by
          #4

          Hi, In C# you can use WinInet.dll directly by using DllImport command. C# gives you facility to use any Win32 dll in itz code. The code for using winInet.dll is : This code is used for declaring the method : [DllImport("wininet.dll", CharSet = CharSet.Auto)] public static extern bool InternetGetConnectedState(ref uint ulFlags, uint ulReserved); Well I nedd to find out about broadcasting of IPs... will let you know shortly... regards, Aryadip. Cheers !! and have a Funky day !!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups