Platform SDK: Fax Services |
A fax client application calls the FaxAccessCheck function to query the fax access privileges of a user.
BOOL WINAPI FaxAccessCheck( HANDLE FaxHandle, // handle to the fax server DWORD AccessMask // set of access level bit flags );
FAX_JOB_SUBMIT
FAX_JOB_QUERY
FAX_CONFIG_QUERY
FAX_CONFIG_SET
FAX_PORT_QUERY
FAX_PORT_SET
FAX_JOB_MANAGE
For a detailed description of these values, see Generic Fax Access Rights and Specific Fax Access Rights.
If the user has the required permission, the return value is nonzero.
If the user does not have the required permission, the return value is zero, and GetLastError returns ERROR_SUCCESS.
If the function fails, the return value is also zero, but GetLastError returns an error code other than ERROR_SUCCESS.
The fax service is a secure service. Users must have certain access privileges to successfully call fax service functions. Call the FaxAccessCheck function to programmatically check a user's fax access permissions. For more information, see Checking the Access Rights of Users and Fax Client User Access Rights.
The fax service administration application, a Microsoft Management Console (MMC) snap-in component, is also available for users to query and modify job access, port access, and global configuration data access privileges.
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