- DWORD nfxReceiveFax (CTAHD ctahd,
NFX_QUEUE_HANDLE receive_queue_handle,
NFX_RECEIVE_PARMS *ptr_receive_parms)
- ctahd Handle returned by ctaCreateContext
- receive_queue_handle Queue to receive documents
- ptr_receive_parms Pointer to parameters for receiving fax documents, or NULL to use default parameters; the NFX_RECEIVE_PARMS structure is as follows:
typedef struct
{
DWORD size; /* size of this structure */
DWORD modemtype; /* NFX_MODEM_TYPE_V27 */
/* NFX_MODEM_TYPE_V29.*/
/* Advertised capabilities */
/* for fax receiver */
DWORD minrate; /* NFX_BIT_RATE_2400 */
/* NFX_BIT_RATE_4800 */
/* NFX_BIT_RATE_7200 */
/* NFX_BIT_RATE_9600 */
DWORD resolution; /* NFX_RESOLUTION_HIGH */
/* NFX_RESOLUTION_LOW */
/* NFX_RESOLUTION_SUPER_HIGH */
DWORD encoding; /* NFX_ENCODE_1D or NFX_ENCODE_2D */
DWORD pollingenabled; /* NFX_YES or NFX_NO */
DWORD badlineaction; /* NFX_BAD_LINE_ACTION_NONE */
/* NFX_BAD_LINE_ACTION_DROP */
/* NFX_BAD_LINE_ACTION_REPT */
/* NFX_BAD_LINE_ACTION_TICK */
DWORD pagewidth; /* NFX_PAGE_WIDTH_A4 */
/* NFX_PAGE_WIDTH_B4 */
/* NFX_PAGE_WIDTH_A3 */
DWORD OTFmode; /* NFX_OTF_NEVER, */
/* NFX_OTF_ALWAYS, */
/* NFX_OTF_ONLY_IF_FAIL */
DWORD reserved;
DWORD lineerrors; /* % line errors before */
/* retrain negative */
DWORD NSFlength; /* Length of NSF field or */
/* 0 if none */
char SID[NFX_MAX_SID]; /* Subscriber ID string */
BYTE NSF[NFX_MAX_USER_NSF];
/* default NSF for session */
} NFX_RECEIVE_PARMS;