📄 keybdhook.h
字号:
// KeybdHook.h : main header file for the KEYBDHOOK DLL
//
#if !defined(AFX_KEYBDHOOK_H__25729FA6_08C5_11D2_8DB2_204C4F4F5020__INCLUDED_)
#define AFX_KEYBDHOOK_H__25729FA6_08C5_11D2_8DB2_204C4F4F5020__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CKeybdHookApp
// See KeybdHook.cpp for the implementation of this class
//
#define EXPORTED_DLL_FUNCTION \
__declspec(dllexport) __stdcall
LRESULT EXPORTED_DLL_FUNCTION KbdHookProc (int nCode,
WPARAM wParam, LPARAM lParam);
class CKeybdHookApp : public CWinApp
{
public:
CKeybdHookApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CKeybdHookApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
//{{AFX_MSG(CKeybdHookApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
BOOL EXPORTED_DLL_FUNCTION InstallKeyboardHook
(HWND hWnd);
BOOL EXPORTED_DLL_FUNCTION DeInstallKeyboardHook();
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_KEYBDHOOK_H__25729FA6_08C5_11D2_8DB2_204C4F4F5020__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -