Leaked source code of windows server 2003
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.

69 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. AudClear.c
  5. Abstract:
  6. This file contains the RpcXlate code to handle the NetAuditClear API.
  7. Author:
  8. John Rogers (JohnRo) 04-Nov-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. 04-Nov-1991 JohnRo
  14. Created.
  15. --*/
  16. // These must be included first:
  17. #include <windef.h> // IN, DWORD, etc.
  18. #include <lmcons.h> // DEVLEN, NET_API_STATUS, etc.
  19. #include <lmaudit.h> // Needed by rxaudit.h
  20. // These may be included in any order:
  21. #include <apinums.h> // API_ equates.
  22. #include <netdebug.h> // NetpKdPrint(()), FORMAT_ equates.
  23. #include <remdef.h> // REM16_, REM32_, REMSmb_ equates.
  24. #include <rx.h> // RxRemoteApi().
  25. #include <rxaudit.h> // My prototype(s).
  26. NET_API_STATUS
  27. RxNetAuditClear (
  28. IN LPTSTR UncServerName,
  29. IN LPTSTR BackupFile OPTIONAL,
  30. IN LPTSTR Reserved OPTIONAL
  31. )
  32. {
  33. NetpAssert(UncServerName != NULL);
  34. NetpAssert(*UncServerName != '\0');
  35. return (RxRemoteApi(
  36. API_WAuditClear, // API number
  37. UncServerName,
  38. REMSmb_NetAuditClear_P, // parm desc
  39. NULL, // no data desc 16
  40. NULL, // no data desc 32
  41. NULL, // no data desc SMB
  42. NULL, // no aux desc 16
  43. NULL, // no aux desc 32
  44. NULL, // no aux desc SMB
  45. 0, // flags: not a null session API
  46. // rest of API's arguments, in 32-bit LM2.x format:
  47. BackupFile,
  48. Reserved));
  49. } // RxNetAuditClear