Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME III. Les librairies utilitaires

24. Le groupe s_wsys

24.27 WscrRasHangUp (file s_wdial.c:513)

Syntax

WscrRasHangUp()

Description

Stop a RAS connection initialized by WscrRasConnect().

Valeur retournée

0 if successfull, error code if error.

Exemple

    main(argc, argv)
int argc;
char *argv[];
{
int rc, State;
char DeviceType[120], DeviceName[120];

if(argc < 4) {
printf("IConnect phone user passwd\n");
exit(1);
}
rc = WscrRasConnect(argv[1], argv[2], argv[3]);
if(rc) {
printf("Error %d\n", rc);
WscrRasHangUp();
exit(rc);
}
if(WscrRasStatus(&State, DeviceType, DeviceName)) {
printf("Can't access State of the device\n");
WscrRasHangUp();
exit(2);
}
else {
printf("State = %d\n", State);
printf("DeviceType = %s\n", DeviceType );
printf("DeviceName = %s\n", DeviceName );
}

printf("Pressez ENTER pour raccrocher");
getchar();
WscrRasHangUp();
exit(0);
}

Voir également

WscrRasStatus(), WscrRasHangUp(), WscrNetUse()

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be