105 lines
1.9 KiB
C
105 lines
1.9 KiB
C
|
/*++
|
||
|
|
||
|
Copyright (c) Microsoft 1998, All Rights Reserved
|
||
|
|
||
|
Module Name:
|
||
|
|
||
|
buffers.h
|
||
|
|
||
|
Abstract:
|
||
|
|
||
|
This module declares the functions that and structures that are visible
|
||
|
to other modules.
|
||
|
|
||
|
Environment:
|
||
|
|
||
|
User mode
|
||
|
|
||
|
Revision History:
|
||
|
|
||
|
May-98 : Created
|
||
|
|
||
|
--*/
|
||
|
|
||
|
#ifndef _BUFFERS_H_
|
||
|
#define _BUFFERS_H_
|
||
|
|
||
|
typedef struct _REPORT_BUFFER
|
||
|
{
|
||
|
PUCHAR pBuffer;
|
||
|
INT iBufferSize;
|
||
|
UCHAR ucReportID;
|
||
|
|
||
|
} REPORT_BUFFER, *PREPORT_BUFFER;
|
||
|
|
||
|
typedef struct _BUFFER_DISPALY
|
||
|
{
|
||
|
HWND hBufferComboBox;
|
||
|
HWND hBufferEditBox;
|
||
|
INT iBufferSize;
|
||
|
INT iCurrSelectionIndex;
|
||
|
INT nReportBuffers;
|
||
|
PREPORT_BUFFER ReportBuffers;
|
||
|
HIDP_REPORT_TYPE ReportType;
|
||
|
} BUFFER_DISPLAY, *PBUFFER_DISPLAY;
|
||
|
|
||
|
BOOLEAN
|
||
|
BufferDisplay_Init(
|
||
|
IN HWND hCB,
|
||
|
IN HWND hEB,
|
||
|
IN INT nBuffers,
|
||
|
IN INT iBufferSize,
|
||
|
IN HIDP_REPORT_TYPE RType,
|
||
|
OUT PBUFFER_DISPLAY *ppBufferDisplay
|
||
|
);
|
||
|
|
||
|
VOID
|
||
|
BufferDisplay_Destroy(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay
|
||
|
);
|
||
|
|
||
|
VOID
|
||
|
BufferDisplay_ChangeSelection(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay
|
||
|
);
|
||
|
|
||
|
BOOLEAN
|
||
|
BufferDisplay_UpdateBuffer(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay,
|
||
|
IN PCHAR pNewBuffer
|
||
|
);
|
||
|
|
||
|
INT
|
||
|
BufferDisplay_GetBufferSize(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay
|
||
|
);
|
||
|
|
||
|
VOID
|
||
|
BufferDisplay_CopyCurrentBuffer(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay,
|
||
|
OUT PCHAR pCopyBuffer
|
||
|
);
|
||
|
|
||
|
INT
|
||
|
BufferDisplay_GetCurrentBufferNumber(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay
|
||
|
);
|
||
|
|
||
|
UCHAR
|
||
|
BufferDisplay_GetCurrentReportID(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay
|
||
|
);
|
||
|
|
||
|
VOID
|
||
|
BufferDisplay_OutputBuffer(
|
||
|
HWND hEditBox,
|
||
|
PREPORT_BUFFER pReportBuffer
|
||
|
);
|
||
|
|
||
|
VOID
|
||
|
BufferDisplay_ClearBuffer(
|
||
|
IN PBUFFER_DISPLAY pBufferDisplay
|
||
|
);
|
||
|
|
||
|
#endif
|