I am writing an application that uses the rasapi32 dll to dial an ISP if the computer is not on a LAN. I use a registry to determine if it is on a LAN. If the computer is on a LAN I do not need the dial up stuff. But since I might need the rasapi dll, it has to be installed for my program to run. That involves installing dial-up networking on a computer that is attached to a LAN and has no modem. What I would like to do is to see if the computer is on a LAN to determine if I need to load the dll.
I know there are some sort of LoadDll() and UnloadDLL() function calls someplace. I am using VC++ 5.0 and I do not know how to keep it from loading the dll. I also don't know the proper way to manually load dlls. This program is being developed under NT and will be used on both NT and 95 computers.
Thanks in advance.