Checks if a user has the proper authority to run diagnostics.
int has_diag_authority chk_shutdown;
The has_diag_authority subroutine checks if the user is authorized to run diagnostics.
Parameter | Description |
---|---|
chk_shutdown | If TRUE, the subroutine checks to see if the user is authorized to shut down the system. |
Return Value | Description |
---|---|
0 | User is not authorized to run diagnostics. |
1 | User is authorized to run diagnostics. |