LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
islogkbdhooklib.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009 Nate
3 * http://nate.dynalias.net
4 *
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with GNU Make; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
19 *
20 */
21
22#ifndef _DEFINED_KEYBOARD_HOOK
23#define _DEFINED_KEYBOARD_HOOK
24
25#if _MSC_VER > 1000
26#pragma once
27#endif
28
29#ifdef __cplusplus
30extern "C" {
31#endif // __cplusplus
32
33// The following ifdef block is the standard way of creating macros which make exporting
34// from a DLL simpler. All files within this DLL are compiled with the
35// KEYBOARDHOOK_EXPORTS
36// symbol defined on the command line. this symbol should not be defined on any project
37// that uses this DLL. This way any other project whose source files include this file see
38// KEYBOARDHOOK_API functions as being imported from a DLL, whereas this DLL sees symbols
39// defined with this macro as being exported.
40#ifdef ISLOGKBDHOOKLIB_EXPORTS
41#define KEYBOARDHOOK_API __declspec(dllexport)
42#else
43#define KEYBOARDHOOK_API __declspec(dllimport)
44#endif
45
46KEYBOARDHOOK_API BOOL SetHook(HWND hWnd, UINT message);
47KEYBOARDHOOK_API BOOL ClearHook(HWND hWnd);
48
49KEYBOARDHOOK_API BOOL SetHook_LL(HWND hWnd, UINT message);
50KEYBOARDHOOK_API BOOL ClearHook_LL(HWND hWnd);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif
#define KEYBOARDHOOK_API
Definition: islogkbdhooklib.hpp:43
KEYBOARDHOOK_API BOOL ClearHook(HWND hWnd)
Definition: islogkbdhooklib.cpp:131
KEYBOARDHOOK_API BOOL SetHook(HWND hWnd, UINT message)
Definition: islogkbdhooklib.cpp:89
KEYBOARDHOOK_API BOOL ClearHook_LL(HWND hWnd)
Definition: islogkbdhooklib.cpp:148
KEYBOARDHOOK_API BOOL SetHook_LL(HWND hWnd, UINT message)
Definition: islogkbdhooklib.cpp:110