Article ID: 181518 - Last Review: July 1, 2004 - Revision: 3.1 How To Programmatically Detect RAS Installation on WorkstationThis article was previously published under Q181518 On This PageSUMMARY
This article shows how to programmatically detect if RAS is installed on a
Workstation.
The sample code included in this article takes into account that RAS might not be installed, even if a copy of the Rasapi32.dll exists in the system directory. Also a valid phone book entry and an active modem are not required. MORE INFORMATION
The way to detect programatically whether or not RAS is installed is to
perform a LoadLibrary on the Rasapi32. If the LoadLibrary fails, RAS is
not installed.
The following sample code demonstrates one way to do this. The function RasInstalled returns TRUE if RAS is installed and returns FALSE if RAS is not installed. Sample Code
| Article Translations
|
Back to the top
