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.

104 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. brutil.h
  5. Abstract:
  6. Private header file for the NT Workstation service included by every module
  7. module of the Workstation service.
  8. Author:
  9. Rita Wong (ritaw) 15-Feb-1991
  10. Revision History:
  11. --*/
  12. #ifndef _BRUTIL_INCLUDED_
  13. #define _BRUTIL_INCLUDED_
  14. //
  15. // This include file will be included by tstring.h if Unicode
  16. // is defined.
  17. //
  18. #ifndef UNICODE
  19. #include <stdlib.h> // Unicode string functions
  20. #endif
  21. #include "br.h"
  22. //
  23. // An invalid parameter is encountered. Return the value to identify
  24. // the parameter at fault.
  25. //
  26. #define RETURN_INVALID_PARAMETER(ErrorParameter, ParameterId) \
  27. if (ARGUMENT_PRESENT(ErrorParameter)) { \
  28. *ErrorParameter = ParameterId; \
  29. } \
  30. return ERROR_INVALID_PARAMETER;
  31. //-------------------------------------------------------------------//
  32. // //
  33. // Type definitions //
  34. // //
  35. //-------------------------------------------------------------------//
  36. //-------------------------------------------------------------------//
  37. // //
  38. // Function prototypes of utility routines found in wsutil.c //
  39. // //
  40. //-------------------------------------------------------------------//
  41. NET_API_STATUS
  42. BrMapStatus(
  43. IN NTSTATUS NtStatus
  44. );
  45. ULONG
  46. BrCurrentSystemTime(VOID);
  47. VOID
  48. BrLogEvent(
  49. IN ULONG MessageId,
  50. IN ULONG ErrorCode,
  51. IN ULONG NumberOfSubStrings,
  52. IN LPWSTR *SubStrings
  53. );
  54. VOID
  55. BrOpenTraceLogFile(
  56. VOID
  57. );
  58. VOID
  59. BrowserTrace(
  60. ULONG DebugFlag,
  61. PCHAR FormatString,
  62. ...
  63. );
  64. VOID
  65. BrInitializeTraceLog(
  66. VOID
  67. );
  68. VOID
  69. BrUninitializeTraceLog(
  70. VOID
  71. );
  72. NET_API_STATUS
  73. BrTruncateLog(
  74. VOID
  75. );
  76. #endif // ifndef _WSUTIL_INCLUDED_