Platform SDK: Fax Services |
The FaxEnumJobs function enumerates all queued and active fax jobs on the fax server to which the client has connected. The function returns detailed information for each fax job to the fax client application.
BOOL WINAPI FaxEnumJobs( HANDLE FaxHandle, // handle to the fax server PFAX_JOB_ENTRY *JobEntry, // buffer to receive array of job data LPDWORD JobsReturned // number of fax job 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_JOB_QUERY access is required. |
ERROR_INVALID_PARAMETER | One or all of the JobsReturned, JobEntry, or FaxHandle parameters are NULL. |
ERROR_NOT_ENOUGH_MEMORY | An error occurred during memory allocation. |
The FaxEnumJobs function returns a list of fax jobs on the fax server of interest, as well as information available about each job. A fax administration application typically calls this function to display the fax job queue for administrative or query purposes. For more information, see Managing Fax Jobs.
The FaxEnumJobs function allocates the memory required for the FAX_JOB_ENTRY buffer array pointed to by the JobEntry parameter. An application must call the FaxFreeBuffer function to deallocate the resources associated with this parameter. For more information, see 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, FaxFreeBuffer, FaxGetJob, FAX_JOB_ENTRY