Platform SDK: Fax Services |
The FaxEnumGlobalRoutingInfo function enumerates all fax routing methods associated with a specific fax server. The function returns to the fax client application fax routing method information that applies globally to the server, such as routing priority.
BOOL WINAPI FaxEnumGlobalRoutingInfo( HANDLE FaxHandle, //handle to the fax server PFAX_GLOBAL_ROUTING_INFO *RoutingInfo, //buffer to receive global routing structures LPDWORD MethodsReturned //number of global routing structures returned );
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_CONFIG_QUERY access is required. |
ERROR_INVALID_PARAMETER | One or all of the MethodsReturned, RoutingInfo or FaxHandle parameters are NULL. |
ERROR_NOT_ENOUGH_MEMORY | An error occurred during memory allocation. |
The FaxEnumGlobalRoutingInfo function retrieves fax routing method information, such as routing priority, that applies globally to the fax server. An application can modify global data by calling the FaxSetGlobalRoutingInfo function.
An application can call the FaxEnumRoutingMethods function to enumerate the fax routing methods associated with a particular device.
The FaxEnumGlobalRoutingInfo function allocates the memory required for the FAX_GLOBAL_ROUTING_INFO buffer array pointed to by the RoutingInfo parameter. An application must call the FaxFreeBuffer function to deallocate the resources associated with this parameter. For more information, see Freeing Fax Resources and 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, FaxFreeBuffer, FaxEnumRoutingMethods, FaxSetGlobalRoutingInfo, FaxConnectFaxServer, FAX_GLOBAL_ROUTING_INFO