Platform SDK: Fax Services |
The FAX_ROUTE structure contains information about a received fax document. The fax service passes the structure to a fax routing method in a call to the FaxRouteMethod function.
typedef struct _FAX_ROUTE { DWORD SizeOfStruct; //structure size, in bytes DWORD JobId; //fax job identifier DWORDLONG ElapsedTime; //elapsed time for the fax job, in UTC DWORDLONG ReceiveTime; //starting time for the fax job, in UTC DWORD PageCount; //number of fax pages received LPCWSTR Csid; //called station identifier LPCWSTR Tsid; //transmitting station identifier LPCWSTR CallerId; //pointer to calling device identifier LPCWSTR RoutingInfo; //pointer to routing string for fax LPCWSTR ReceiverName; //pointer to receiver name LPCWSTR ReceiverNumber; //pointer to receiving fax number LPCWSTR DeviceName; //pointer to device name DWORD DeviceId; //line identifier of the receiving device LPBYTE RoutingInfoData; //array with additional routing data DWORD RoutingInfoDataSize; //size of routing data array } FAX_ROUTE, *PFAX_ROUTE;
Canonical-Phone-Number[|Additional-Routing-Info]
where Canonical-Phone-Number
is defined in Canonical Addresses in the TAPI documentation; and the format of Additional-Routing-Info
is defined according to the recommendation of the standards body of the International Telecommunication Union (ITU) from Study Group 8 (SG8). This is currently known as "T.Routing."
For more information, see Dialable Addresses and Canonical Addresses in the TAPI documentation.
A fax routing method can call the FaxRouteModifyRoutingData callback function to change the routing information for a subsequent routing method. The function does this by modifying the RoutingInfoData member of the FAX_ROUTE structure that applies to the subsequent method. This allows a fax routing extension to retrieve user-defined routing data and to provide additional callback information to a different routing method. When the subsequent routing method executes, it processes the received fax transmission using the modified routing data. For more information, see FaxRouteModifyRoutingData.
The fax routing method can use the FileTimeToLocalFileTime function to convert from UTC to local time, and then use the FileTimeToSystemTime function to convert the local time to a SYSTEMTIME structure. SYSTEMTIME contains individual members for month, day, year, weekday, hour, minute, second, and millisecond.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in faxroute.h.
Fax Routing Extension Application Programming Interface Overview, Fax Routing Extension Structures, FaxRouteModifyRoutingData, FaxRouteMethod, FileTimeToLocalFileTime, FileTimeToSystemTime, SYSTEMTIME