home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / dn511.exe / DSAUDIT.H < prev    next >
C/C++ Source or Header  |  1995-01-09  |  4KB  |  99 lines

  1. /*
  2. **    Copyright ⌐ 1994 Novell, Inc.  All rights reserved.
  3. **
  4. **    Permission is granted to the recipient of this work ("you") to use,
  5. **    reproduce and distribute Novell's original publication of the work free
  6. **    of charge provided that you reproduce the work in its entirety and
  7. **    include all Novell copyright notices as they originally appear.
  8. **
  9. **    Novell grants you permission to modify and distribute copies of this
  10. **    work including any portion of this work (a "modified work") provided
  11. **    that you include prominent notification of such modification along with
  12. **    the date of modification on a modified work; distribute or publish a
  13. **    modified work to third parties under the same conditions and granting
  14. **    the same rights as are extended to you by Novell under this under
  15. **    permission notice; and provided that you include a copy of Novell's
  16. **    original publication of the work along with any copy of a modified
  17. **    work.
  18. **
  19. **    NOVELL MAKES NO WARRANTY, REPRESENTATION OR PROMISE THAT THIS WORK OR A
  20. **    MODIFIED WORK WILL SATISFY YOUR REQUIREMENTS OR THAT THIS WORK OR A
  21. **    MODIFIED WORK IS WITHOUT DEFECT OR ERROR.  NOVELL DISCLAIMS AND
  22. **    EXCLUDES ANY AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY, TITLE OR
  23. **    FITNESS FOR A PARTICULAR PURPOSE.
  24. **
  25. **    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL NOVELL OR ANY OTHER
  26. **    PARTY BE LIABLE FOR DAMAGES INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
  27. **    CONSEQUENTIAL, INDIRECT OR PUNATIVE DAMAGES ARISING OUT OF THE USE OF
  28. **    OR INABLITITY TO USE THE WORK OR A MODIFIED WORK.
  29. **
  30. **    DSAUDIT.H - October 1994
  31. **
  32. **    Declaration of the DSAudit class.
  33. **
  34. **    Author: John Buckle, Asia Pacific Support Centre, Novell Australia
  35. **    ==================================================================
  36. **    9 Jan 1995           First release              John Buckle
  37. */
  38.  
  39. # ifndef dsAUDIT_H
  40. # define dsAUDIT_H
  41.  
  42. # include "dsdefs.h"
  43. # include "dsconn.h"
  44.  
  45. /*
  46. ** Class DSAudit
  47. **
  48. **    Used to administer NDS Audit sessions. Volume and container auditing
  49. **    APIs have been combined into a single API set. The type of auditing
  50. **    being performed depends on whether LoginAsVolumeAuditor or
  51. **    LoginAsContainerAuditor is executed.
  52. */
  53.  
  54. class _DSCLASSDEC DSAudit : public DSConn
  55. {
  56. protected:
  57.     DWORD            ObjectID ;
  58.     WORD            AuditContainer ;
  59.     WORD            FileCode ;
  60.     BYTE            AuditKey[40] ;
  61.     NWFLAGS            EofFlag ;
  62. public:
  63.             DSAudit(NWDSContextHandle context, NWPSTR server)
  64.                 : DSConn(context,server)
  65.                 { ObjectID = 0 ; }
  66.             DSAudit(NWDSContextHandle context, NWCONN_HANDLE conn = 0)
  67.                 : DSConn(context,conn)
  68.                 { ObjectID = 0 ; }
  69.     virtual          ~    DSAudit() ;
  70.  
  71.     NWDSCCODE    AddAuditProperty(DWORD objectID) ;
  72.     NWDSCCODE    ChangeAuditorPassword(BYTE * password, BYTE level) ;
  73.     NWDSCCODE    ChangeAuditProperty(DWORD objectID, BYTE flag) ;
  74.     NWDSCCODE    CheckAuditAccess() ;
  75.     NWDSCCODE    CheckAuditLevelTwoAccess() ;
  76.     NWDSCCODE    CloseOldAuditingFile() ;
  77.     NWDSCCODE    DeleteOldAuditingFile() ;
  78.     NWDSCCODE    DisableAuditingOnObject() ;
  79.     NWDSCCODE    EnableAuditingOnObject() ;
  80.     NWDSCCODE    GetAuditingFlags(NWFLAGS & flags) ;
  81.     NWDSCCODE    GetObjectAuditStats(void * buffer, WORD size = 0) ;
  82.     NWDSCCODE    InitAuditFileRead(int fileCode) ;
  83.     NWDSCCODE    InitAuditLevelTwoPassword(BYTE * password) ;
  84.     NWDSCCODE    IsObjectBeingAudited(DWORD objectID) ;
  85.     NWDSCCODE    LoginAsVolumeAuditor(DWORD volume, BYTE * password) ;
  86.     NWDSCCODE    LoginAsContainerAuditor(DWORD container, BYTE * password) ;
  87.     NWDSCCODE    LogoutAsAuditor() ;
  88.     NWDSCCODE    ReadAuditConfigHeader(void * buffer, WORD size = 0) ;
  89.     NWDSCCODE    ReadAuditingBitMap(NWAuditBitMap * buffer, WORD size = sizeof(NWAuditBitMap)) ;
  90.     NWDSCCODE    ReadAuditingFileRecord(void * buffer, WORD bufferSize, WORD & returnSize) ;
  91.     NWDSCCODE    RemoveAuditProperty(DWORD objectID) ;
  92.     NWDSCCODE    ResetAuditHistoryFile() ;
  93.     NWDSCCODE    ResetAuditingFile() ;
  94.     NWDSCCODE    WriteAuditConfigHeader(void * buffer) ;
  95.     NWDSCCODE    WriteAuditingBitMap(NWEventBitMap * buffer) ;
  96. } ;
  97.  
  98. # endif dsAUDIT_H
  99.