Platform SDK: Fax Services |
The FaxGetConfiguration function returns to a fax client application the global configuration settings for the fax server to which the client has connected. The data includes, among other items, retransmission, branding, archive and cover page settings; discount rate periods; and the status of the fax server queue.
BOOL WINAPI FaxGetConfiguration( HANDLE FaxHandle, // handle to the fax server PFAX_CONFIGURATION *FaxConfig // structure to receive configuration data );
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 FaxConfig or FaxHandle parameters are NULL. |
ERROR_ACCESS_DENIED | Access is denied. FAX_CONFIG_QUERY access is required. |
ERROR_NOT_ENOUGH_MEMORY | An error occurred during memory allocation. |
A fax administration application typically calls the FaxGetConfiguration function to display the global configuration settings for a fax server. To change the configuration settings, call the FaxSetConfiguration function.
The FaxGetConfiguration function allocates the memory required for the FAX_CONFIGURATION buffer pointed to by the FaxConfig 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, FaxConnectFaxServer, FaxSetConfiguration, FAX_CONFIGURATION