Platform SDK: Fax Services |
A fax routing method calls the FaxRouteAddFile callback function to add a file to the fax file list associated with a received fax document.
LONG WINAPI FaxRouteAddFile( DWORD JobId, // fax job identifier LPCWSTR FileName, // pointer to the file name to add GUID *Guid // pointer to the GUID for the routing method );
If the function succeeds, the return value is the file number of the file added to the fax file list associated with the received fax.
If the function fails, the return value is – 1. To get extended error information, call GetLastError.
The fax service passes a pointer to the FaxRouteAddFile callback function when the fax service calls the FaxRouteInitialize function. The service passes the pointer in a FAX_ROUTE_CALLBACKROUTINES structure.
The PFAXROUTEADDFILE data type is a pointer to a FaxRouteAddFile function.
For more information, see Fax File Lists.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in faxroute.h.
Import Library: User-defined.
Fax Routing Extension Application Programming Interface Overview, Fax Routing Extension Functions, FaxRouteDeleteFile, FAX_ROUTE_CALLBACKROUTINES, FaxRouteGetFile, FaxRouteInitialize