How can I programmatically launch a dial-up connection (without using the RAS API)?
Launch \windows\rnaapp.exe using CreateProcess or ShellExecuteEx. For example: SHELLEXECUTEINFO shInfo; memset(&shInfo, 0, sizeof(SHELLEXECUTEINFO)); shInfo.cbSize = sizeof(SHELLEXECUTEINFO); shInfo.fMask = SEE_MASK_NOCLOSEPROCESS; shInfo.lpFile = _T(“rnaapp.exe”); shInfo.lpParameters = _T(“-e\”work\” -m”); shInfo.lpDirectory = _T(“\\windows”); ShellExecuteEx(&shInfo); This will start the dial-up connection named work. If you need more control over the connection, use the RAS API.