Platform SDK: Fax Services |
The fax service calls the FaxDevInitialize function each time the service starts, after it loads the fax service provider DLL. Each fax service provider must export the FaxDevInitialize function.
BOOL WINAPI FaxDevInitialize( HLINEAPP LineAppHandle, // handle to fax service TAPI registration HANDLE HeapHandle, // handle to heap for memory allocation PFAX_LINECALLBACK *LineCallbackFunction, // pointer to line callback function PFAX_SERVICE_CALLBACK FaxServiceCallback // pointer to service callback function );
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. In this case, the current instance of the fax service does not use this fax service provider. All devices that this fax service provider supports are unable to send or receive faxes. To get extended error information, the fax service calls GetLastError.
The fax service provider must respond to the FaxDevInitialize function by performing any necessary initialization.
The fax service provider must supply the FAX_LINECALLBACK function specified by the LineCallbackFunction parameter. The fax service calls this function when it needs to deliver a TAPI event to the fax service provider.
For more information, see Virtual Fax Devices.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in faxdev.h.
Import Library: User-defined.
Fax Service Provider Application Programming Interface Overview, Fax Service Provider Functions, FaxDevStartJob, FAX_LINECALLBACK, FaxDevVirtualDeviceCreation, lineInitializeEx