home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
MSJV5-1.ZIP
/
ISAM.ARC
/
FIG17.C
< prev
next >
Wrap
Text File
|
1989-12-11
|
483b
|
23 lines
/* Function to terminate connection with server.
*/
int isdisconnect()
{
int iRetVal;
iRetVal = SendMessage(hWndServer, wmTermISAM,
hWndClient, 0L);
if (iRetVal != ISOK) {
/* Error terminating connection. */
if (iRetVal == 0L)
iserrno = ISNOSERVER;
else
iserrno = iRetVal;
return -1;
}
/* Successfully terminated connection with server. */
hWndServer = NULL;
return 0;
}