📄 keyq.h
字号:
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* This software is provided "AS IS" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of noninfringement, merchantability and/or
* fitness for a particular purpose.
* ---------------------------------------------------------------
*
* Copyright (c) 2008 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
#ifndef __KEYQ_H__
#define __KEYQ_H__
extern "C"
{
#include <wdm.h>
}
#include <windef.h>
#include <ks.h>
#include <ksmedia.h>
typedef struct
{
DWORD dwCommand;
DWORD dwAddress;
}KEYSTROKE;
class KeystrokeQueue{
public:
VOID Insert(KEYSTROKE& Keystroke);
KEYSTROKE Remove();
VOID Flush();
KeystrokeQueue(USHORT Size);
~KeystrokeQueue();
BOOLEAN IsEmpty(){return (m_ReadIndex == -1);}
NTSTATUS init();
protected:
USHORT m_BufferSize;
KEYSTROKE *m_Buffer;
USHORT m_ReadIndex;
USHORT m_WriteIndex;
KSPIN_LOCK m_SpinLock;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -