Detecting change of ip-address
-
Hi Is there a way to detect when windows receives a new ip-address from a DNS, or even better, hook the actual call to the DNS? I've gone through windows hooks and messages, but without any luck. :( tia /Niklas
look into WMI Windows Management Instrumentation overview[^] otherwise start a thread and poll overy so often using the IP Helper functions[^]
-
Hi Is there a way to detect when windows receives a new ip-address from a DNS, or even better, hook the actual call to the DNS? I've gone through windows hooks and messages, but without any luck. :( tia /Niklas
Is this for a normal app or a service. Services can specify: SERVICE_ACCEPT_NETBINDCHANGE, SERVICE_ACCEPT_HARDWAREPROFILECHANGE. This allows them to receive: SERVICE_CONTROL_NETBINDADD, SERVICE_CONTROL_NETBINDREMOVE, SERVICE_CONTROL_NETBINDENABLE, SERVICE_CONTROL_NETBINDDISABLE, SERVICE_CONTROL_HARDWAREPROFILECHANGE. ...cmk Save the whales - collect the whole set