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.

114 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. AudStub.c
  5. Abstract:
  6. This module contains stubs for the NetAudit APIs.
  7. Author:
  8. John Rogers (JohnRo) 29-Oct-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. Revision History:
  13. 29-Oct-1991 JohnRo
  14. Implement remote NetAudit APIs.
  15. --*/
  16. // These must be included first:
  17. #include <windef.h> // IN, DWORD, etc.
  18. #include <lmcons.h> // DEVLEN, NET_API_STATUS, etc.
  19. // These may be included in any order:
  20. #include <lmaudit.h> // NetAudit APIs.
  21. #include <rxaudit.h> // RxNetAudit APIs.
  22. #include <winerror.h> // ERROR_ equates.
  23. NET_API_STATUS NET_API_FUNCTION
  24. NetAuditClear (
  25. IN LPCWSTR UncServerName OPTIONAL,
  26. IN LPCWSTR backupfile OPTIONAL,
  27. IN LPCWSTR reserved OPTIONAL
  28. )
  29. {
  30. if ( (UncServerName == NULL) || (*UncServerName == '\0') ) {
  31. return (ERROR_NOT_SUPPORTED);
  32. }
  33. return (RxNetAuditClear(
  34. (LPWSTR)UncServerName,
  35. (LPWSTR)backupfile,
  36. (LPWSTR)reserved));
  37. } // NetAuditClear
  38. NET_API_STATUS NET_API_FUNCTION
  39. NetAuditRead (
  40. IN LPCWSTR UncServerName OPTIONAL,
  41. IN LPCWSTR reserved1 OPTIONAL,
  42. IN LPHLOG auditloghandle,
  43. IN DWORD offset,
  44. IN LPDWORD reserved2 OPTIONAL,
  45. IN DWORD reserved3,
  46. IN DWORD offsetflag,
  47. OUT LPBYTE *bufptr,
  48. IN DWORD prefmaxlen,
  49. OUT LPDWORD bytesread,
  50. OUT LPDWORD totalavailable
  51. )
  52. {
  53. if ( (UncServerName == NULL) || (*UncServerName == '\0') ) {
  54. return (ERROR_NOT_SUPPORTED);
  55. }
  56. return (RxNetAuditRead(
  57. (LPWSTR)UncServerName,
  58. (LPWSTR)reserved1,
  59. auditloghandle,
  60. offset,
  61. reserved2,
  62. reserved3,
  63. offsetflag,
  64. bufptr,
  65. prefmaxlen,
  66. bytesread,
  67. totalavailable));
  68. } // NetAuditRead
  69. NET_API_STATUS NET_API_FUNCTION
  70. NetAuditWrite (
  71. IN DWORD type,
  72. IN LPBYTE buf,
  73. IN DWORD numbytes,
  74. IN LPCWSTR reserved1 OPTIONAL,
  75. IN LPBYTE reserved2 OPTIONAL
  76. )
  77. {
  78. UNREFERENCED_PARAMETER(type);
  79. UNREFERENCED_PARAMETER(buf);
  80. UNREFERENCED_PARAMETER(numbytes);
  81. UNREFERENCED_PARAMETER(reserved1);
  82. UNREFERENCED_PARAMETER(reserved2);
  83. return (ERROR_NOT_SUPPORTED);
  84. } // NetAuditWrite