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.

71 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. ErrClear.r
  5. Abstract:
  6. This file contains the RpcXlate code to handle the NetErrorLogClear API.
  7. Author:
  8. John Rogers (JohnRo) 12-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. 12-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 <lmerrlog.h> // NetErrorLog APIs; needed by rxerrlog.h.
  20. // These may be included in any order:
  21. #include <apinums.h> // API_ equates.
  22. #include <lmerr.h> // ERROR_ and NERR_ equates.
  23. #include <netdebug.h> // NetpKdPrint(()), FORMAT_ equates.
  24. #include <remdef.h> // REM16_, REM32_, REMSmb_ equates.
  25. #include <rx.h> // RxRemoteApi().
  26. #include <rxerrlog.h> // My prototype(s).
  27. NET_API_STATUS
  28. RxNetErrorLogClear (
  29. IN LPTSTR UncServerName,
  30. IN LPTSTR BackupFile OPTIONAL,
  31. IN LPBYTE Reserved OPTIONAL
  32. )
  33. {
  34. NetpAssert(UncServerName != NULL);
  35. NetpAssert(*UncServerName != '\0');
  36. return (RxRemoteApi(
  37. API_WErrorLogClear, // API number
  38. UncServerName,
  39. REMSmb_NetErrorLogClear_P, // parm desc
  40. NULL, // no data desc 16
  41. NULL, // no data desc 32
  42. NULL, // no data desc SMB
  43. NULL, // no aux desc 16
  44. NULL, // no aux desc 32
  45. NULL, // no aux desc SMB
  46. 0, // flags: not a null session API
  47. // rest of API's arguments, in 32-bit LM2.x format:
  48. BackupFile,
  49. Reserved));
  50. } // RxNetErrorLogClear