2001-08-28 20:44:52 +02:00
|
|
|
/*
|
|
|
|
* Wine server USER definitions
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 Alexandre Julliard
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-08-28 20:44:52 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SERVER_USER_H
|
|
|
|
#define __WINE_SERVER_USER_H
|
|
|
|
|
|
|
|
#include "wine/server_protocol.h"
|
|
|
|
|
|
|
|
struct thread;
|
|
|
|
struct window;
|
2001-11-13 23:23:48 +01:00
|
|
|
struct msg_queue;
|
2001-08-28 20:44:52 +02:00
|
|
|
|
|
|
|
enum user_object
|
|
|
|
{
|
2002-10-29 01:41:42 +01:00
|
|
|
USER_WINDOW = 1,
|
|
|
|
USER_HOOK
|
2001-08-28 20:44:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* user handles functions */
|
|
|
|
|
|
|
|
extern user_handle_t alloc_user_handle( void *ptr, enum user_object type );
|
|
|
|
extern void *get_user_object( user_handle_t handle, enum user_object type );
|
|
|
|
extern void *get_user_object_handle( user_handle_t *handle, enum user_object type );
|
2001-09-12 19:09:24 +02:00
|
|
|
extern user_handle_t get_user_full_handle( user_handle_t handle );
|
2001-08-28 20:44:52 +02:00
|
|
|
extern void *free_user_handle( user_handle_t handle );
|
|
|
|
extern void *next_user_handle( user_handle_t *handle, enum user_object type );
|
|
|
|
|
2003-06-24 01:02:02 +02:00
|
|
|
/* clipboard functions */
|
|
|
|
|
|
|
|
extern void cleanup_clipboard_thread( struct thread *thread );
|
|
|
|
|
2002-11-20 20:54:32 +01:00
|
|
|
/* hook functions */
|
|
|
|
|
|
|
|
extern void close_global_hooks(void);
|
|
|
|
|
2001-08-28 20:44:52 +02:00
|
|
|
/* queue functions */
|
|
|
|
|
2002-08-17 01:30:41 +02:00
|
|
|
extern void free_msg_queue( struct thread *thread );
|
2001-11-13 23:23:48 +01:00
|
|
|
extern void inc_queue_paint_count( struct thread *thread, int incr );
|
2001-08-28 20:44:52 +02:00
|
|
|
extern void queue_cleanup_window( struct thread *thread, user_handle_t win );
|
2002-10-11 20:50:15 +02:00
|
|
|
extern int attach_thread_input( struct thread *thread_from, struct thread *thread_to );
|
2002-03-23 21:43:52 +01:00
|
|
|
extern void post_message( user_handle_t win, unsigned int message,
|
|
|
|
unsigned int wparam, unsigned int lparam );
|
2001-08-28 20:44:52 +02:00
|
|
|
|
|
|
|
/* window functions */
|
|
|
|
|
|
|
|
extern void destroy_thread_windows( struct thread *thread );
|
2001-09-21 23:08:40 +02:00
|
|
|
extern int is_child_window( user_handle_t parent, user_handle_t child );
|
2002-10-12 01:41:06 +02:00
|
|
|
extern int is_top_level_window( user_handle_t window );
|
|
|
|
extern int make_window_active( user_handle_t window );
|
2002-03-23 21:43:52 +01:00
|
|
|
extern struct thread *get_window_thread( user_handle_t handle );
|
2003-01-08 01:27:58 +01:00
|
|
|
extern user_handle_t window_from_point( int x, int y );
|
2001-11-14 22:28:36 +01:00
|
|
|
extern user_handle_t find_window_to_repaint( user_handle_t parent, struct thread *thread );
|
2001-08-28 20:44:52 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_SERVER_USER_H */
|