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.

119 lines
1.7 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. DWORD
  54. NlpAtoX(
  55. IN LPWSTR String
  56. );
  57. VOID
  58. NlWaitForSingleObject(
  59. IN LPSTR WaitReason,
  60. IN HANDLE WaitHandle
  61. );
  62. BOOLEAN
  63. NlWaitForSamService(
  64. BOOLEAN NetlogonServiceCalling
  65. );
  66. VOID
  67. NlpPutString(
  68. IN PUNICODE_STRING OutString,
  69. IN PUNICODE_STRING InString,
  70. IN PUCHAR *Where
  71. );
  72. NET_API_STATUS
  73. NlReadBinaryLog(
  74. IN LPWSTR FileSuffix,
  75. IN BOOL DeleteName,
  76. OUT LPBYTE *Buffer,
  77. OUT PULONG BufferSize
  78. );
  79. BOOLEAN
  80. NlpIsNtStatusResourceError(
  81. NTSTATUS Status
  82. );
  83. BOOLEAN
  84. NlpDidDcFail(
  85. NTSTATUS Status
  86. );
  87. //
  88. // Fast version of NtQuerySystemTime
  89. //
  90. #define NlQuerySystemTime( _Time ) GetSystemTimeAsFileTime( (LPFILETIME)(_Time) )