Platform SDK: Fax Services |
The FaxEnableRoutingMethod function enables or disables a fax routing method for a specific fax device. A fax administration application typically calls this function for device management.
BOOL WINAPI FaxEnableRoutingMethod( HANDLE FaxPortHandle, // fax port handle LPCTSTR RoutingGuid, // GUID that identifies the fax routing method BOOL Enabled // fax routing method enable/disable flag );
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_INVALID_PARAMETER | One or both of the FaxPortHandle or RoutingGuid parameters are NULL. |
ERROR_INVALID_DATA | The RoutingGuid parameter is invalid. |
ERROR_ACCESS_DENIED | Access is denied. FAX_PORT_SET access is required. |
A fax client application can call the FaxEnableRoutingMethod function to enable a fax routing method for a particular fax device. It can also call the function to disable a routing method enabled by a prior call to FaxEnableRoutingMethod or by the fax service administration application. For more information, see Managing Fax Routing Data.
Call the FaxOpenPort function to obtain a valid port handle to specify in the FaxPortHandle parameter.
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, FaxRouteMethod, FaxEnumRoutingMethods