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.

121 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. ErrStub.c
  5. Abstract:
  6. This module contains stubs for the NetErrorLog APIs.
  7. Author:
  8. John Rogers (JohnRo) 11-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. 11-Nov-1991 JohnRo
  14. Implement downlevel NetErrorLog 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. #include <lmerrlog.h> // NetErrorLog APIs; needed by rxerrlog.h.
  20. // These may be included in any order:
  21. #include <rxerrlog.h> // RxNetErrorLog APIs.
  22. #include <winerror.h> // ERROR_ equates.
  23. NET_API_STATUS NET_API_FUNCTION
  24. NetErrorLogClear (
  25. IN LPCWSTR UncServerName OPTIONAL,
  26. IN LPCWSTR BackupFile OPTIONAL,
  27. IN LPBYTE Reserved OPTIONAL
  28. )
  29. {
  30. if ( (UncServerName == NULL) || (*UncServerName == '\0') ) {
  31. return (ERROR_NOT_SUPPORTED);
  32. }
  33. return (RxNetErrorLogClear(
  34. (LPWSTR)UncServerName,
  35. (LPWSTR)BackupFile,
  36. Reserved));
  37. } // NetErrorLogClear
  38. NET_API_STATUS NET_API_FUNCTION
  39. NetErrorLogRead (
  40. IN LPCWSTR UncServerName OPTIONAL,
  41. IN LPWSTR Reserved1 OPTIONAL,
  42. IN LPHLOG ErrorLogHandle,
  43. IN DWORD Offset,
  44. IN LPDWORD Reserved2 OPTIONAL,
  45. IN DWORD Reserved3,
  46. IN DWORD OffsetFlag,
  47. OUT LPBYTE * BufPtr,
  48. IN DWORD PrefMaxSize,
  49. OUT LPDWORD BytesRead,
  50. OUT LPDWORD TotalAvailable
  51. )
  52. {
  53. if ( (UncServerName == NULL) || (*UncServerName == '\0') ) {
  54. return (ERROR_NOT_SUPPORTED);
  55. }
  56. return (RxNetErrorLogRead(
  57. (LPWSTR)UncServerName,
  58. Reserved1,
  59. ErrorLogHandle,
  60. Offset,
  61. Reserved2,
  62. Reserved3,
  63. OffsetFlag,
  64. BufPtr,
  65. PrefMaxSize,
  66. BytesRead,
  67. TotalAvailable));
  68. } // NetErrorLogRead
  69. NET_API_STATUS NET_API_FUNCTION
  70. NetErrorLogWrite (
  71. IN LPBYTE Reserved1 OPTIONAL,
  72. IN DWORD Code,
  73. IN LPCWSTR Component,
  74. IN LPBYTE Buffer,
  75. IN DWORD NumBytes,
  76. IN LPBYTE MsgBuf,
  77. IN DWORD StrCount,
  78. IN LPBYTE Reserved2 OPTIONAL
  79. )
  80. {
  81. UNREFERENCED_PARAMETER(Reserved1);
  82. UNREFERENCED_PARAMETER(Code);
  83. UNREFERENCED_PARAMETER(Component);
  84. UNREFERENCED_PARAMETER(Buffer);
  85. UNREFERENCED_PARAMETER(NumBytes);
  86. UNREFERENCED_PARAMETER(MsgBuf);
  87. UNREFERENCED_PARAMETER(StrCount);
  88. UNREFERENCED_PARAMETER(Reserved2);
  89. return (ERROR_NOT_SUPPORTED);
  90. } // NetErrorLogWrite