Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. RxAudit.h
  5. Abstract:
  6. Prototypes for down-level remoted RxNetAudit routines
  7. Author:
  8. Richard Firth (rfirth) 28-May-1991
  9. Environment:
  10. Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
  11. Requires ANSI C extensions: slash-slash comments, long external names.
  12. Notes:
  13. <windef.h>, <lmcons.h>, and <lmaudit.h> must be included before this file.
  14. Revision History:
  15. 28-May-1991 RFirth
  16. Created dummy version of this file.
  17. 04-Nov-1991 JohnRo
  18. Implement remote NetAudit APIs.
  19. --*/
  20. #ifndef _RXAUDIT_
  21. #define _RXAUDIT_
  22. // API handlers (called by API stubs), in alphabetical order:
  23. NET_API_STATUS
  24. RxNetAuditClear (
  25. IN LPTSTR server,
  26. IN LPTSTR backupfile OPTIONAL,
  27. IN LPTSTR service OPTIONAL
  28. );
  29. NET_API_STATUS
  30. RxNetAuditRead (
  31. IN LPTSTR server,
  32. IN LPTSTR service OPTIONAL,
  33. IN LPHLOG auditloghandle,
  34. IN DWORD offset,
  35. IN LPDWORD reserved1 OPTIONAL,
  36. IN DWORD reserved2,
  37. IN DWORD offsetflag,
  38. OUT LPBYTE *bufptr,
  39. IN DWORD prefmaxlen,
  40. OUT LPDWORD bytesread,
  41. OUT LPDWORD totalavailable // approximate!!!
  42. );
  43. NET_API_STATUS
  44. RxNetAuditWrite (
  45. IN DWORD type,
  46. IN LPBYTE buf,
  47. IN DWORD numbytes,
  48. IN LPTSTR service OPTIONAL,
  49. IN LPBYTE reserved OPTIONAL
  50. );
  51. // Private copy-and-convert routines, in aplhabetical order:
  52. NET_API_STATUS
  53. RxpConvertAuditArray(
  54. IN LPVOID InputArray,
  55. IN DWORD InputByteCount,
  56. OUT LPBYTE * OutputArray, // will be alloc'ed (free w/ NetApiBufferFree).
  57. OUT LPDWORD OutputByteCount
  58. );
  59. VOID
  60. RxpConvertAuditEntryVariableData(
  61. IN DWORD EntryType,
  62. IN LPVOID InputVariablePtr,
  63. OUT LPVOID OutputVariablePtr,
  64. IN DWORD InputVariableSize,
  65. OUT LPDWORD OutputVariableSize
  66. );
  67. #endif // _RXAUDIT_