#include <nwaudit.h> or #include <nwnet.h>NWCCODE N_API NWLoginAsVolumeAuditor (NWCONN_HANDLE conn, nuint32 volumeNumber, nuint8 N_FAR
auditKey, nuint8 N_FAR
password);
NWLoginAsVolumeAuditor must be called before any auditing functions can be done.
auditKey is initialized and set up for future auditing API calls; auditKey must be allocated by the program.
Only a level one password is authenticated with NWLoginAsVolumeAuditor.
If auditing has not been initialized on the volume, call NWLoginAsVolumeAuditor and ``Auditing Not Enabled'' will be returned. Then call NWEnableAuditingOnVolume.
After calling NWEnableAuditingOnVolume, call NWLoginAsVolumeAuditor again to give the user access to auditing.
If the user is not SUPERVISOR equivalent, NWLoginAsVolumeAuditor will fail the first time it is called.
Once auditing is enabled, the user does not have to be SUPERVISOR equivalent but must know the auditor password.
Auditing