Platform SDK: Fax Services |
A fax management application calls the FaxSetRoutingInfo function to modify the routing information for a fax routing method that is associated with a specific fax device.
BOOL WINAPI FaxSetRoutingInfo( HANDLE FaxPortHandle, // fax port handle LPCTSTR RoutingGuid, // GUID that identifies fax routing method CONST BYTE *RoutingInfoBuffer, // buffer with routing method data DWORD RoutingInfoBufferSize // size of buffer, in bytes );
For information about fax routing methods, see About the Fax Routing Extension API. For information about the relationship between routing methods and GUIDs, see Fax Routing Methods.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError. GetLastError can return one of the following errors.
Error code | Description |
---|---|
ERROR_ACCESS_DENIED | Access is denied. FAX_PORT_SET access is required. |
ERROR_INVALID_PARAMETER | One or more of the parameters are NULL. |
ERROR_INVALID_DATA | The RoutingGuid parameter is invalid. |
The fax service administration application, an MMC snap-in component that manages the specified fax routing method, typically calls the FaxSetRoutingInfo function. This is because the format of the routing data is unavailable to the fax client application. The routing data is relevant only to the exported fax routing method and the method's administration application.
To obtain a valid port handle to specify in the FaxPortHandle parameter of the FaxSetRoutingInfo function, call the FaxOpenPort function.
The FaxEnumGlobalRoutingInfo function retrieves routing information that applies globally to the fax server, such as routing priority. An application can modify global data with a call to the FaxSetGlobalRoutingInfo function.
For more information, see Managing Fax Routing Data.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable with BackOffice Small Business Server.
Header: Declared in Winfax.h.
Library: Included as a resource in Winfax.dll.
Unicode: Implemented as Unicode and ANSI versions on all platforms.
Fax Service Client Application Programming Interface Overview, Fax Service Client API Functions, FaxOpenPort, FaxGetRoutingInfo, FaxEnumRoutingMethods, FaxEnumGlobalRoutingInfo, FaxSetGlobalRoutingInfo, FAX_GLOBAL_ROUTING_INFO