Cleaned up the code so it would be easier to parse with the new C
[wine] / include / spy.h
1 /*
2  * Message Logging functions
3  *
4  * Copyright 1994 Bob Amstadt
5  * Copyright 1995 Alex Korobka
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #ifndef __WINE_SPY_H
23 #define __WINE_SPY_H
24
25 #include "windef.h"
26
27 #define SPY_DISPATCHMESSAGE16     0x0100
28 #define SPY_DISPATCHMESSAGE     0x0101
29 #define SPY_SENDMESSAGE16         0x0102
30 #define SPY_SENDMESSAGE         0x0103
31 #define SPY_DEFWNDPROC16          0x0104
32 #define SPY_DEFWNDPROC          0x0105
33
34 #define SPY_RESULT_OK16           0x0000
35 #define SPY_RESULT_OK           0x0001
36 #define SPY_RESULT_INVALIDHWND16  0x0002
37 #define SPY_RESULT_INVALIDHWND  0x0003
38 #define SPY_RESULT_DEFWND16       0x0004
39 #define SPY_RESULT_DEFWND       0x0005
40
41
42 extern const char *SPY_GetMsgName( UINT msg, HWND hWnd );
43 extern const char *SPY_GetVKeyName(WPARAM wParam);
44 extern void SPY_EnterMessage( INT iFlag, HWND hwnd, UINT msg,
45                               WPARAM wParam, LPARAM lParam );
46 extern void SPY_ExitMessage( INT iFlag, HWND hwnd, UINT msg,
47                              LRESULT lReturn, WPARAM wParam, LPARAM lParam );
48 extern int SPY_Init(void);
49
50 #endif /* __WINE_SPY_H */