Added {G|S}etWindowLongPtr.
[wine] / server / user.h
1 /*
2  * Wine server USER definitions
3  *
4  * Copyright (C) 2001 Alexandre Julliard
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_SERVER_USER_H
22 #define __WINE_SERVER_USER_H
23
24 #include "wine/server_protocol.h"
25
26 struct thread;
27 struct window;
28 struct msg_queue;
29
30 enum user_object
31 {
32     USER_WINDOW = 1
33 };
34
35 /* user handles functions */
36
37 extern user_handle_t alloc_user_handle( void *ptr, enum user_object type );
38 extern void *get_user_object( user_handle_t handle, enum user_object type );
39 extern void *get_user_object_handle( user_handle_t *handle, enum user_object type );
40 extern user_handle_t get_user_full_handle( user_handle_t handle );
41 extern void *free_user_handle( user_handle_t handle );
42 extern void *next_user_handle( user_handle_t *handle, enum user_object type );
43
44 /* queue functions */
45
46 extern void free_msg_queue( struct thread *thread );
47 extern void inc_queue_paint_count( struct thread *thread, int incr );
48 extern void queue_cleanup_window( struct thread *thread, user_handle_t win );
49 extern void post_message( user_handle_t win, unsigned int message,
50                           unsigned int wparam, unsigned int lparam );
51
52 /* window functions */
53
54 extern void destroy_thread_windows( struct thread *thread );
55 extern int is_child_window( user_handle_t parent, user_handle_t child );
56 extern struct thread *get_window_thread( user_handle_t handle );
57 extern user_handle_t find_window_to_repaint( user_handle_t parent, struct thread *thread );
58
59 #endif  /* __WINE_SERVER_USER_H */