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.

129 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1987-1996 Microsoft Corporation
  3. Module Name:
  4. nlp.h
  5. Abstract:
  6. Private Netlogon service utility routines.
  7. Author:
  8. Cliff Van Dyke (cliffv) 7-Jun-1991
  9. Environment:
  10. User mode only.
  11. Contains NT-specific code.
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Revision History:
  14. --*/
  15. //
  16. // Procedure forwards from nlp.c
  17. //
  18. LPWSTR
  19. NlStringToLpwstr(
  20. IN PUNICODE_STRING String
  21. );
  22. LPSTR
  23. NlStringToLpstr(
  24. IN PUNICODE_STRING String
  25. );
  26. BOOLEAN
  27. NlAllocStringFromWStr(
  28. IN LPWSTR InString,
  29. OUT PUNICODE_STRING OutString
  30. );
  31. BOOLEAN
  32. NlDuplicateUnicodeString(
  33. IN PUNICODE_STRING InString OPTIONAL,
  34. OUT PUNICODE_STRING OutString
  35. );
  36. VOID
  37. NlFreeUnicodeString(
  38. IN PUNICODE_STRING InString OPTIONAL
  39. );
  40. VOID
  41. NlpClearEventlogList (
  42. VOID
  43. );
  44. VOID
  45. NlpWriteEventlog (
  46. IN DWORD EventID,
  47. IN DWORD EventType,
  48. IN LPBYTE buffer OPTIONAL,
  49. IN DWORD numbytes,
  50. IN LPWSTR *msgbuf,
  51. IN DWORD strcount
  52. );
  53. VOID
  54. NlpWriteEventlogEx (
  55. IN DWORD EventId,
  56. IN DWORD EventType,
  57. IN LPBYTE RawDataBuffer OPTIONAL,
  58. IN DWORD RawDataSize,
  59. IN LPWSTR *StringArray,
  60. IN DWORD StringCount,
  61. IN DWORD StatusMessageIndex
  62. );
  63. DWORD
  64. NlpAtoX(
  65. IN LPWSTR String
  66. );
  67. VOID
  68. NlWaitForSingleObject(
  69. IN LPSTR WaitReason,
  70. IN HANDLE WaitHandle
  71. );
  72. BOOLEAN
  73. NlWaitForSamService(
  74. BOOLEAN NetlogonServiceCalling
  75. );
  76. VOID
  77. NlpPutString(
  78. IN PUNICODE_STRING OutString,
  79. IN PUNICODE_STRING InString,
  80. IN PUCHAR *Where
  81. );
  82. NET_API_STATUS
  83. NlReadBinaryLog(
  84. IN LPWSTR FileSuffix,
  85. IN BOOL DeleteName,
  86. OUT LPBYTE *Buffer,
  87. OUT PULONG BufferSize
  88. );
  89. BOOLEAN
  90. NlpIsNtStatusResourceError(
  91. NTSTATUS Status
  92. );
  93. BOOLEAN
  94. NlpDidDcFail(
  95. NTSTATUS Status
  96. );
  97. //
  98. // Fast version of NtQuerySystemTime
  99. //
  100. #define NlQuerySystemTime( _Time ) GetSystemTimeAsFileTime( (LPFILETIME)(_Time) )