FaxEnableRoutingMethodA function (winfax.h)
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.
WINFAXAPI BOOL FaxEnableRoutingMethodA( HANDLE FaxPortHandle, LPCSTR RoutingGuid, BOOL Enabled );
Specifies a fax port handle returned by a call to the FaxOpenPort function.
Pointer to a constant null-terminated character string that specifies the GUID that uniquely identifies the fax routing method of interest.
Specifies a Boolean variable that indicates whether the application is enabling or disabling the fax routing method specified by the RoutingGuid parameter. If this parameter is TRUE, the application is enabling the routing method; if this parameter is FALSE, the application is disabling the routing method.
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.
||One or both of the FaxPortHandle or RoutingGuid parameters are NULL.|
||The RoutingGuid parameter is invalid.|
||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.
The winfax.h header defines FaxEnableRoutingMethod as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|