NWADIsObjectAudited(3nw)


NWADIsObjectAudited -- checks to see if specified object or user is being audited

Synopsis

   #include <nwaudit.h> 
   or 
   #include <nwnet.h> 
   

N_EXTERN_LIBRARY NWRCODE NWADIsObjectAudited (NWCONN_HANDLE conn, nuint32 auditIDType, nuint32 auditID, nuint32 userObjectID);

Description

The parameters are as follows:

conn
(IN) Specifies the NetWare server connection handle.

auditIDType
(IN) Specifies the type of object to change:

AUDIT_ID_IS_VOLUME
AUDIT_ID_IS_TRUSTED
AUDIT_ID_IS_CONTAINER

auditID
(IN) Specifies the value of the object type to change:

0 AUDIT_ID_IS_VOLUME indicating the audit ID represents a volume
1 AUDIT_ID_IS_CONTAINER indicating the audit ID represents a DS container
2 AUDIT_ID_IS_TRUSTED indicating the audit ID represents a Trusted NetWare type

userObjectID
(IN) Specifies the object ID to be checked if it is being audited.

Return values

0x0000
SUCCESSFUL -- User is not being audited.

0x0001
SUCCESSFUL -- User is being audited.

Notices

NWADIsObjectAudited returns 0x0000 if the user is not being audited and 0x0001 if the user is being audited.

userObjectID must be byte-swapped to the same format in which the server stores it.

Services

Auditing

NCP calls

0x2222 88 09 Is User Audited
0x2222 104 220 Is Object Audited

References

NWADChangeObjectProperty(3nw), NWADLogin(3nw),


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.