Platform SDK: Fax Services |
A fax routing method calls the FaxRouteDeleteFile callback function to delete a file from the fax file list associated with a received fax document.
LONG WINAPI FaxRouteDeleteFile( DWORD JobId, // fax job identifier LPCWSTR FileName // pointer to the file name to delete );
If the function succeeds, the return value is the file number of the file deleted from 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.
A fax routing method can use the FaxRouteDeleteFile function to remove a file that a different routing method added to the fax file list. For more information, see Fax File Lists.
The fax service passes a pointer to the FaxRouteDeleteFile callback function when the fax service calls the FaxRouteInitialize function. The service passes the pointer in a FAX_ROUTE_CALLBACKROUTINES structure.
The PFAXROUTEDELETEFILE data type is a pointer to a FaxRouteDeleteFile function.
Note A fax routing method cannot remove the initial Tagged Image File Format, Class F for facsimile (TIFF Class F) file from the fax file list. For information about TIFF files, see Fax Image Format.
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, FAX_ROUTE_CALLBACKROUTINES, FaxRouteAddFile, FaxRouteGetFile, FaxRouteInitialize