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.

113 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. sacapi.c
  5. Abstract:
  6. This is the C library header used to interface to SAC driver.
  7. Author:
  8. Brian Guarraci (briangu)
  9. Revision History:
  10. --*/
  11. #ifndef _SAC_API_H
  12. #define _SAC_API_H
  13. #include <ntddsac.h>
  14. //
  15. // this should really be in windefs or somewhere like that.
  16. //
  17. typedef const PBYTE PCBYTE;
  18. typedef const PWCHAR PCWCHAR;
  19. BOOL
  20. SacChannelOpen(
  21. OUT PSAC_CHANNEL_HANDLE SacChannelHandle,
  22. IN PSAC_CHANNEL_OPEN_ATTRIBUTES SacChannelAttributes
  23. );
  24. BOOL
  25. SacChannelClose(
  26. IN OUT PSAC_CHANNEL_HANDLE SacChannelHandle
  27. );
  28. BOOL
  29. SacChannelWrite(
  30. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  31. IN PCBYTE Buffer,
  32. IN ULONG BufferSize
  33. );
  34. BOOL
  35. SacChannelRawWrite(
  36. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  37. IN PCBYTE Buffer,
  38. IN ULONG BufferSize
  39. );
  40. BOOL
  41. SacChannelVTUTF8Write(
  42. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  43. IN PCWCHAR Buffer,
  44. IN ULONG BufferSize
  45. );
  46. BOOL
  47. SacChannelVTUTF8WriteString(
  48. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  49. IN PCWSTR String
  50. );
  51. BOOL
  52. SacChannelHasNewData(
  53. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  54. OUT PBOOL InputWaiting
  55. );
  56. BOOL
  57. SacChannelRead(
  58. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  59. OUT PBYTE Buffer,
  60. IN ULONG BufferSize,
  61. OUT PULONG ByteCount
  62. );
  63. BOOL
  64. SacChannelRawRead(
  65. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  66. OUT PBYTE Buffer,
  67. IN ULONG BufferSize,
  68. OUT PULONG ByteCount
  69. );
  70. BOOL
  71. SacChannelVTUTF8Read(
  72. IN SAC_CHANNEL_HANDLE SacChannelHandle,
  73. OUT PWSTR Buffer,
  74. IN ULONG BufferSize,
  75. OUT PULONG ByteCount
  76. );
  77. BOOL
  78. SacRegisterCmdEvent(
  79. OUT HANDLE *pDriverHandle,
  80. IN HANDLE RequestSacCmdEvent,
  81. IN HANDLE RequestSacCmdSuccessEvent,
  82. IN HANDLE RequestSacCmdFailureEvent
  83. );
  84. BOOL
  85. SacUnRegisterCmdEvent(
  86. IN OUT HANDLE *pDriverHandle
  87. );
  88. #endif