Platform SDK: Fax Services |
The FaxEnumRoutingMethods function enumerates all fax routing methods for a specific fax device. The function returns information about each routing method to a fax client application.
BOOL WINAPI FaxEnumRoutingMethods( HANDLE FaxPortHandle, // fax port handle PFAX_ROUTING_METHOD *RoutingMethod, // buffer to receive routing method data LPDWORD MethodsReturned // number of routing method structures returned );
For information about memory allocation, see the following Remarks section. For information about fax routing methods, see About the Fax Routing Extension API.
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_QUERY access is required. |
ERROR_INVALID_PARAMETER | One or all of the MethodsReturned, RoutingMethod, or FaxPortHandle parameters are NULL. |
ERROR_NOT_ENOUGH_MEMORY | An error occurred during memory allocation. |
A fax administration application typically calls the FaxEnumRoutingMethods function to query the fax routing methods associated with a particular device. A call to the FaxSetRoutingInfo function changes the routing information for a particular fax routing method.
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.
The FaxEnumRoutingMethods function allocates the memory required for the FAX_ROUTING_METHOD buffer array pointed to by the RoutingMethod parameter. An application must call the FaxFreeBuffer function to deallocate the resources associated with this parameter.
For more information, see Fax Server Configuration Management and Freeing Fax Resources.
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, FaxFreeBuffer, FaxOpenPort, FaxEnableRoutingMethod, FaxGetRoutingInfo, FaxSetRoutingInfo, FaxEnumGlobalRoutingInfo, FaxSetGlobalRoutingInfo, FAX_GLOBAL_ROUTING_INFO, FAX_ROUTING_METHOD