| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > Delphi: Общие вопросы > Дозвон |
| Автор: DriveSoftware 16.10.2003, 09:12 |
| Привет! Как зная имя dial-up соединения запустить его дозвон до прова. |
| Автор: delirium_ua 16.10.2003, 12:03 |
| DWORD InternetDial( IN HWND hwndParent, IN LPTSTR lpszConnectoid, IN DWORD dwFlags, OUT LPDWORD lpdwConnection, IN DWORD dwReserved ); Initiates a connection to the Internet using a modem connection. hwndParent Handle to the parent window. lpszConnectoid String value containing the name of the dial-up connection to use. dwFlags Double-word value that contains the flags to use. Can be one of the following values: INTERNET_AUTODIAL_FORCE_ONLINE Forces an online connection. INTERNET_AUTODIAL_FORCE_UNATTENDED Forces an unattended Internet dial-up. INTERNET_DIAL_UNATTENDED Connects to the Internet through a modem, without displaying a user interface. lpdwConnection Address of a double-word value containing the number associated to the connection. dwReserved Reserved. Must be set to zero. |
| Автор: delirium_ua 16.10.2003, 12:04 |
| если соединение по умолчанию можно так BOOL InternetAutodial( IN DWORD dwFlags, IN DWORD dwReserved ); Automatically causes the modem to dial the default Internet connection. Returns TRUE if successful, or FALSE otherwise. dwFlags Double-word value that contains the flags controlling this operation. Can be one of the following values: INTERNET_AUTODIAL_FORCE_ONLINE Forces an online Internet connection. INTERNET_AUTODIAL_FORCE_UNATTENDED Forces an unattended Internet dial-up. dwReserved Reserved. Must be set to zero. |
| Автор: DriveSoftware 16.10.2003, 12:45 |
| Блин, а по проще? |
| Автор: delirium_ua 16.10.2003, 12:55 | ||
чего еще проще InternetDial(Self,'Имя соединения',INTERNET_AUTODIAL_FORCE_ONLINE ,ИД соединения,0); или InternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE,0); где сложности? |