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.0 KiB

  1. /*++
  2. Copyright (c) Microsoft 1998, All Rights Reserved
  3. Module Name:
  4. buffers.h
  5. Abstract:
  6. This module declares the functions that and structures that are visible
  7. to other modules.
  8. Environment:
  9. User mode
  10. Revision History:
  11. May-98 : Created
  12. --*/
  13. #ifndef _BUFFERS_H_
  14. #define _BUFFERS_H_
  15. typedef struct _REPORT_BUFFER
  16. {
  17. PUCHAR pBuffer;
  18. INT iBufferSize;
  19. UCHAR ucReportID;
  20. } REPORT_BUFFER, *PREPORT_BUFFER;
  21. typedef struct _BUFFER_DISPALY
  22. {
  23. HWND hBufferComboBox;
  24. HWND hBufferEditBox;
  25. INT iBufferSize;
  26. INT iCurrSelectionIndex;
  27. INT nReportBuffers;
  28. PREPORT_BUFFER ReportBuffers;
  29. HIDP_REPORT_TYPE ReportType;
  30. } BUFFER_DISPLAY, *PBUFFER_DISPLAY;
  31. BOOLEAN
  32. BufferDisplay_Init(
  33. IN HWND hCB,
  34. IN HWND hEB,
  35. IN INT nBuffers,
  36. IN INT iBufferSize,
  37. IN HIDP_REPORT_TYPE RType,
  38. OUT PBUFFER_DISPLAY *ppBufferDisplay
  39. );
  40. VOID
  41. BufferDisplay_Destroy(
  42. IN PBUFFER_DISPLAY pBufferDisplay
  43. );
  44. VOID
  45. BufferDisplay_ChangeSelection(
  46. IN PBUFFER_DISPLAY pBufferDisplay
  47. );
  48. BOOLEAN
  49. BufferDisplay_UpdateBuffer(
  50. IN PBUFFER_DISPLAY pBufferDisplay,
  51. IN PCHAR pNewBuffer
  52. );
  53. INT
  54. BufferDisplay_GetBufferSize(
  55. IN PBUFFER_DISPLAY pBufferDisplay
  56. );
  57. VOID
  58. BufferDisplay_CopyCurrentBuffer(
  59. IN PBUFFER_DISPLAY pBufferDisplay,
  60. OUT PCHAR pCopyBuffer
  61. );
  62. INT
  63. BufferDisplay_GetCurrentBufferNumber(
  64. IN PBUFFER_DISPLAY pBufferDisplay
  65. );
  66. UCHAR
  67. BufferDisplay_GetCurrentReportID(
  68. IN PBUFFER_DISPLAY pBufferDisplay
  69. );
  70. VOID
  71. BufferDisplay_OutputBuffer(
  72. HWND hEditBox,
  73. PREPORT_BUFFER pReportBuffer
  74. );
  75. VOID
  76. BufferDisplay_ClearBuffer(
  77. IN PBUFFER_DISPLAY pBufferDisplay
  78. );
  79. #endif