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.

178 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. util.h
  5. Abstract:
  6. This is the local header file for SAC utilities.
  7. Author:
  8. Brian Guarraci (briangu)
  9. Revision History:
  10. --*/
  11. #ifndef _SAC_UTIL_H_
  12. #define _SAC_UTIL_H_
  13. NTSTATUS
  14. CommunicationBufferWrite(
  15. IN PUCHAR buffer,
  16. IN ULONG bufferSize
  17. );
  18. ULONG
  19. ConvertAnsiToUnicode(
  20. OUT PWSTR pwch,
  21. IN PSTR pch,
  22. IN ULONG cchMax
  23. );
  24. NTSTATUS
  25. RegisterSacCmdEvent(
  26. IN PFILE_OBJECT FileObject,
  27. IN PSAC_CMD_SETUP_CMD_EVENT SetupCmdEvent
  28. );
  29. NTSTATUS
  30. UnregisterSacCmdEvent(
  31. IN PFILE_OBJECT FileObject
  32. );
  33. BOOLEAN
  34. IsCmdEventRegistrationProcess(
  35. IN PFILE_OBJECT FileObject
  36. );
  37. BOOLEAN
  38. VerifyEventWaitable(
  39. IN HANDLE hEvent,
  40. OUT PVOID *EventObjectBody,
  41. OUT PVOID *EventWaitObjectBody
  42. );
  43. NTSTATUS
  44. InvokeUserModeService(
  45. VOID
  46. );
  47. NTSTATUS
  48. PreloadGlobalMessageTable(
  49. PVOID ImageHandle
  50. );
  51. NTSTATUS
  52. TearDownGlobalMessageTable(
  53. VOID
  54. );
  55. PCWSTR
  56. GetMessage(
  57. ULONG MessageId
  58. );
  59. VOID
  60. InitializeMachineInformation(
  61. VOID
  62. );
  63. VOID
  64. FreeMachineInformation(
  65. VOID
  66. );
  67. NTSTATUS
  68. TranslateMachineInformationText(
  69. PWSTR* Buffer
  70. );
  71. NTSTATUS
  72. TranslateMachineInformationXML(
  73. PWSTR* Buffer,
  74. PWSTR AdditionalInfo
  75. );
  76. NTSTATUS
  77. RegisterBlueScreenMachineInformation(
  78. VOID
  79. );
  80. NTSTATUS
  81. UTF8EncodeAndSend(
  82. PCWSTR OutputBuffer
  83. );
  84. BOOLEAN
  85. SacTranslateUtf8ToUnicode(
  86. UCHAR IncomingByte,
  87. UCHAR *ExistingUtf8Buffer,
  88. WCHAR *DestinationUnicodeVal
  89. );
  90. BOOLEAN
  91. SacTranslateUnicodeToUtf8(
  92. IN PCWSTR SourceBuffer,
  93. IN ULONG SourceBufferLength,
  94. IN PUCHAR DestinationBuffer,
  95. IN ULONG DestinationBufferSize,
  96. OUT PULONG UTF8Count,
  97. OUT PULONG ProcessedCount
  98. );
  99. NTSTATUS
  100. SerialBufferGetChar(
  101. IN PUCHAR ch
  102. );
  103. NTSTATUS
  104. VerifyChannelLogin(
  105. VOID
  106. );
  107. NTSTATUS
  108. ChannelLoginWorker(
  109. IN PWCHAR UserName,
  110. IN PWCHAR UserPassword
  111. );
  112. NTSTATUS
  113. CopyAndInsertStringAtInterval(
  114. IN PWCHAR SourceStr,
  115. IN ULONG Interval,
  116. IN PWCHAR InsertStr,
  117. OUT PWCHAR *DestStr
  118. );
  119. #if ENABLE_CMD_SESSION_PERMISSION_CHECKING
  120. NTSTATUS
  121. GetCommandConsoleLaunchingPermission(
  122. OUT PBOOLEAN Permission
  123. );
  124. #if ENABLE_SACSVR_START_TYPE_OVERRIDE
  125. NTSTATUS
  126. ImposeSacCmdServiceStartTypePolicy(
  127. VOID
  128. );
  129. #endif
  130. #endif
  131. ULONG
  132. GetMessageLineCount(
  133. ULONG MessageId
  134. );
  135. #endif