C API
#include ”faxcpp.h”
BOOL GetModemCommand( PORTFAX Port,
int CommandNum,
LPSTR lpBuffer,
int cbBuffer);
C++ API
Port-> GetModemCommand(int CommandNum ,LPSTR lpBuffer,int cbBuffer);
|
Class 1. |
Class 2. Class 2.0 |
Brooktrout
|
GammaLink
|
Dialogic
|
NMS
|
|
|
|
|
|
Description
This function queries the current modem command setting.
Parameters
|
PORTFAX |
Port; |
FaxPort created by ConnectPort function |
|
int |
CommandNum ; |
Command number defined in <faxtype.h> |
|
LPSTR |
lpBuffer; |
Character buffer where the command is placed |
|
int |
cbBuffer ; |
Maximum size of buffer including terminating (0) char ; |
Return Value
FER_BAD_FAXPORT if Port == NULL
FER_BAD_INDEX if CommandNum out of range
FER_BAD_PARAM if lpBuffer NULL or too small
Sample Code
char szCommandBuffer[32] ;
GetModemCommand(Port,szCommandBuffer,sizeof(szCommandBuffer));