<< Click to Display Table of Contents >>
ZfxStopServer
Stop the Zetafax server.
Syntax
ZFERR FAR ZfxStopServer( ZFSESSIONHANDLE hSession, SHORT fReserved)
Parameters
Parameter |
Description |
hSession |
API session handle, as returned by ZfxAPI |
Init callfReserved |
Reserved - set to FALSE (0) |
Description
This routine requests the Zetafax server to stop. Note that this will abort any faxes currently being sent or received.
Return value
The routine returns 0 if successful, otherwise one of the following:
ZFERR_NOT_INITIALISED
ZFERR_SERVER_NOT_RUNNING
Example
#include <stdio.h>
#include <zfapi.h>
...
Err = ZfxStopServer(hSession, FALSE);
if (Err == 0)
{
printf("Server stopping\n");
}
else
{
printf("Unable to stop server\n");
}
Related topics