Problem with gethostbyaddr function

Home Forums Discussions General Discussion Problem with gethostbyaddr function

This topic contains 1 reply, has 2 voices, and was last updated by  lovepkfilter 9 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5233

    sorin_v
    Participant

    Hi,

    I’m developing an application and I want to get the host name from an IP address.
    I am using gethostbyaddr function, but the firewall on the machine the application is running pops up with a warning that my application is trying to access the network. There is another function for this, getnameinfo, and the pop up doesn’t appear, but it only works for XP or later. On Windows 2000 the pop up still appears.
    Is there any other function that works on Win 2000 that I can use?

    Thanks,

    Sorin

    #6704

    lovepkfilter
    Participant

    the fucked virus software,gethostbyaddr is a normal function. but the silly virus software still hook it.

    i can get the 20 bytes from the gethostbyaddr,then jmp to the aftter 20 bytes! 🙂 :mrgreen:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.