2001-08-28 11:44:52 -07:00
|
|
|
/*
|
|
|
|
* Wine server USER definitions
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 Alexandre Julliard
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_SERVER_USER_H
|
|
|
|
#define __WINE_SERVER_USER_H
|
|
|
|
|
|
|
|
#include "wine/server_protocol.h"
|
|
|
|
|
|
|
|
struct thread;
|
|
|
|
struct window;
|
2001-11-13 15:23:48 -07:00
|
|
|
struct msg_queue;
|
2001-08-28 11:44:52 -07:00
|
|
|
|
|
|
|
enum user_object
|
|
|
|
{
|
|
|
|
USER_WINDOW = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
/* 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 10:09:24 -07:00
|
|
|
extern user_handle_t get_user_full_handle( user_handle_t handle );
|
2001-08-28 11:44:52 -07:00
|
|
|
extern void *free_user_handle( user_handle_t handle );
|
|
|
|
extern void *next_user_handle( user_handle_t *handle, enum user_object type );
|
|
|
|
|
|
|
|
/* queue functions */
|
|
|
|
|
2001-11-13 15:23:48 -07:00
|
|
|
extern void inc_queue_paint_count( struct thread *thread, int incr );
|
2001-08-28 11:44:52 -07:00
|
|
|
extern void queue_cleanup_window( struct thread *thread, user_handle_t win );
|
|
|
|
|
|
|
|
/* window functions */
|
|
|
|
|
|
|
|
extern void destroy_thread_windows( struct thread *thread );
|
2001-09-21 14:08:40 -07:00
|
|
|
extern int is_child_window( user_handle_t parent, user_handle_t child );
|
2001-11-14 14:28:36 -07:00
|
|
|
extern user_handle_t find_window_to_repaint( user_handle_t parent, struct thread *thread );
|
2001-08-28 11:44:52 -07:00
|
|
|
|
|
|
|
#endif /* __WINE_SERVER_USER_H */
|