Platform SDK: Fax Services |
The FaxGetLoggingCategories function returns to a fax client application the current logging categories for the fax server to which the client has connected. A logging category determines the errors or other events the fax server records in the application event log.
BOOL WINAPI FaxGetLoggingCategories( HANDLE FaxHandle, // handle to the fax server PFAX_LOG_CATEGORY *Categories, // buffer to receive category data LPDWORD NumberCategories // number of logging categories returned );
For a description of predefined logging categories and logging levels, see the FAX_LOG_CATEGORY topic. For information about memory allocation, see the following Remarks section.
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 Categories, NumberCategories, or FaxHandle parameters are NULL. |
ERROR_NOT_ENOUGH_MEMORY | An error occurred during memory allocation. |
A fax client application typically calls the FaxGetLoggingCategories function to query the current logging categories and logging levels for a fax server. To modify the current logging categories and levels, call the FaxSetLoggingCategories function.
The FaxGetLoggingCategories function allocates the memory required for the FAX_LOG_CATEGORY buffer array pointed to by the Categories parameter. An application must call the FaxFreeBuffer function to deallocate the resources associated with this parameter.
For more information, see Managing Logging Categories 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, FaxConnectFaxServer, FaxSetLoggingCategories, FaxFreeBuffer, FAX_LOG_CATEGORY