Ive been all over looking for a way to disable the network adapter through M$ IP Helper routines.
For the majority of the code I've been using this api:
http://msdn.microsoft.com/en-us/library/aa366071(v=VS.85).aspx
However, I do not see a way to actually disable the adapters .. If deleting the IP address associated with the adapter disables the adapter I will accept that, but wasn't sure.
Any help is highly appreciated
Thanks
I don't know if there is a simple API to disable it. I think you might have to go through the device manager API. SetupDiSetDeviceRegistryProperty + SPDRP_CONFIGFLAGS + CONFIGFLAG_DISABLED looks promising.
There are also some suggestions here.
Related
I am playing around with an application to do some remote connection and I am struggling with understanding the tun/tap. I have installed OpenVPN tuntap driver and can connect/configure it through my application but I need some clarification.
If I use it in TAP mode I need to bridge my network adapters correct??
How would a TUN interface be setup?? I know that I need to call DeviceIoControl with TAP_IOCTL_CONFIG_TUN and I think I understand how but my research leads me to think I also need to add into the windows routing tables??
Can someone layout what a typical TUN Layer3 VPN would look like
Thanks
Matt
Seems like google and youtube detect your location via SSID that is attached to every packet sent from your Wi-Fi network.
I tried using VPN but it didnt hide the SSID, then i tried using VPN + SOCKv5 but it didnt hide the SSID.
Then i simply tried let-me-thru.com and it hide my location from google just fine lol.
I am very confused, someone can explain me why is that ?
Also can someone recommend me VPN service that hides your SSID please ?
Thanks in advance.
If you're really paranoid, don't use wireless networking.
But what makes you think that SSID is sent over the internet? And even if it were (which it is not), you could just change it and there would be no way to know its location.
Perhaps you meant 'IP', which can e used to find your rough location? You cannot spoof your source IP. A decent proxy will hide it, however.
I've been just wondering if there's any method to proxify an app without hooking the connect() function after injecting my dll or changing the hardcoded ip address to which it connects itself.
I need it to connect to changed IP address, and since it doesn't use hostname but an IP address I can't use hosts file to do so.
I need it for a bit more than just sniffing, so using anything like WinPcap isn't an option.
If anybody could point me to something useful, I'd be very grateful. The programming language doesn't really matter to me, but as a note - I'm mostly coding in Delphi.
Thanks in advance, and cheers! :)
Edit:
I'm not looking for any third-party apps, just a method that I could implement in my own app.
I need to search for available wireless networks and take this list and store it. I tried searching in MSDN Library for information, plus Google. But no luck.
Kindly help me. Thanks.
The best you can do regarding the wireless connection is determining the connection type. There is no way to access or manipulate details about the connection.
See this MSDN article for more information on using NetworkInterface.NetworkInterfaceType to determine the connection type
Windows Phone (even Mango) does not have an API that exposes this information.
I could do an endless timer checking IsInetOffline(), but I would prefer a hook callback that tells me when I plug/unplug the ethernet network cable or connect to wireless internet. Is there such a thing in the Windows API?
If you're on .NET you can use the System.Net.NetworkInformation.NetworkChange.NetworkAvailabilityChanged event. It's using Winsock APIs under the covers if you need to do it without .NET (Reflector it if you want to know more), but it's some nasty async stuff in there- not a nice handy "call me when the network status changes".
There may be a better way, but there is a NotifyAddrChange asynchronous function in the IP Helper Library that will create a notification when an IPv4 address changes.
It's done with Win32 Shell Notifications (Explorer does that)
You can see here for code in C.