~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/server/user.h

Version: ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~ [ wine-1.0-rc5 ] ~ [ wine-1.0-rc4 ] ~ [ wine-1.0-rc3 ] ~ [ wine-1.0-rc2 ] ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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 region;
 28 struct window;
 29 struct msg_queue;
 30 struct hook_table;
 31 struct window_class;
 32 struct atom_table;
 33 struct clipboard;
 34 
 35 enum user_object
 36 {
 37     USER_WINDOW = 1,
 38     USER_HOOK
 39 };
 40 
 41 #define DESKTOP_ATOM  ((atom_t)32769)
 42 
 43 struct winstation
 44 {
 45     struct object      obj;                /* object header */
 46     unsigned int       flags;              /* winstation flags */
 47     struct list        entry;              /* entry in global winstation list */
 48     struct list        desktops;           /* list of desktops of this winstation */
 49     struct clipboard  *clipboard;          /* clipboard information */
 50     struct atom_table *atom_table;         /* global atom table */
 51 };
 52 
 53 struct desktop
 54 {
 55     struct object        obj;            /* object header */
 56     unsigned int         flags;          /* desktop flags */
 57     struct winstation   *winstation;     /* winstation this desktop belongs to */
 58     struct list          entry;          /* entry in winstation list of desktops */
 59     struct window       *top_window;     /* desktop window for this desktop */
 60     struct window       *msg_window;     /* HWND_MESSAGE top window */
 61     struct hook_table   *global_hooks;   /* table of global hooks on this desktop */
 62     struct timeout_user *close_timeout;  /* timeout before closing the desktop */
 63     unsigned int         users;          /* processes and threads using this desktop */
 64 };
 65 
 66 /* user handles functions */
 67 
 68 extern user_handle_t alloc_user_handle( void *ptr, enum user_object type );
 69 extern void *get_user_object( user_handle_t handle, enum user_object type );
 70 extern void *get_user_object_handle( user_handle_t *handle, enum user_object type );
 71 extern user_handle_t get_user_full_handle( user_handle_t handle );
 72 extern void *free_user_handle( user_handle_t handle );
 73 extern void *next_user_handle( user_handle_t *handle, enum user_object type );
 74 
 75 /* clipboard functions */
 76 
 77 extern void cleanup_clipboard_thread( struct thread *thread );
 78 
 79 /* hook functions */
 80 
 81 extern void remove_thread_hooks( struct thread *thread );
 82 extern unsigned int get_active_hooks(void);
 83 
 84 /* queue functions */
 85 
 86 extern void free_msg_queue( struct thread *thread );
 87 extern struct hook_table *get_queue_hooks( struct thread *thread );
 88 extern void set_queue_hooks( struct thread *thread, struct hook_table *hooks );
 89 extern void inc_queue_paint_count( struct thread *thread, int incr );
 90 extern void queue_cleanup_window( struct thread *thread, user_handle_t win );
 91 extern int init_thread_queue( struct thread *thread );
 92 extern int attach_thread_input( struct thread *thread_from, struct thread *thread_to );
 93 extern void detach_thread_input( struct thread *thread_from );
 94 extern void post_message( user_handle_t win, unsigned int message,
 95                           unsigned long wparam, unsigned long lparam );
 96 extern void post_win_event( struct thread *thread, unsigned int event,
 97                             user_handle_t win, unsigned int object_id,
 98                             unsigned int child_id, void *proc,
 99                             const WCHAR *module, data_size_t module_size,
100                             user_handle_t handle );
101 
102 /* region functions */
103 
104 extern struct region *create_empty_region(void);
105 extern struct region *create_region_from_req_data( const void *data, data_size_t size );
106 extern void free_region( struct region *region );
107 extern void set_region_rect( struct region *region, const rectangle_t *rect );
108 extern rectangle_t *get_region_data( const struct region *region, data_size_t max_size,
109                                      data_size_t *total_size );
110 extern rectangle_t *get_region_data_and_free( struct region *region, data_size_t max_size,
111                                               data_size_t *total_size );
112 extern int is_region_empty( const struct region *region );
113 extern void get_region_extents( const struct region *region, rectangle_t *rect );
114 extern void offset_region( struct region *region, int x, int y );
115 extern struct region *copy_region( struct region *dst, const struct region *src );
116 extern struct region *intersect_region( struct region *dst, const struct region *src1,
117                                         const struct region *src2 );
118 extern struct region *subtract_region( struct region *dst, const struct region *src1,
119                                        const struct region *src2 );
120 extern struct region *union_region( struct region *dst, const struct region *src1,
121                                     const struct region *src2 );
122 extern struct region *xor_region( struct region *dst, const struct region *src1,
123                                   const struct region *src2 );
124 extern int point_in_region( struct region *region, int x, int y );
125 extern int rect_in_region( struct region *region, const rectangle_t *rect );
126 
127 /* window functions */
128 
129 extern struct process *get_top_window_owner( struct desktop *desktop );
130 extern void close_desktop_window( struct desktop *desktop );
131 extern void destroy_window( struct window *win );
132 extern void destroy_thread_windows( struct thread *thread );
133 extern int is_child_window( user_handle_t parent, user_handle_t child );
134 extern int is_top_level_window( user_handle_t window );
135 extern int is_window_visible( user_handle_t window );
136 extern int make_window_active( user_handle_t window );
137 extern struct thread *get_window_thread( user_handle_t handle );
138 extern user_handle_t window_from_point( struct desktop *desktop, int x, int y );
139 extern user_handle_t find_window_to_repaint( user_handle_t parent, struct thread *thread );
140 extern struct window_class *get_window_class( user_handle_t window );
141 
142 /* window class functions */
143 
144 extern void destroy_process_classes( struct process *process );
145 extern struct window_class *grab_class( struct process *process, atom_t atom,
146                                         void *instance, int *extra_bytes );
147 extern void release_class( struct window_class *class );
148 extern int is_desktop_class( struct window_class *class );
149 extern int is_hwnd_message_class( struct window_class *class );
150 extern atom_t get_class_atom( struct window_class *class );
151 extern void *get_class_client_ptr( struct window_class *class );
152 
153 /* windows station functions */
154 
155 extern struct desktop *get_desktop_obj( struct process *process, obj_handle_t handle, unsigned int access );
156 extern struct winstation *get_process_winstation( struct process *process, unsigned int access );
157 extern struct desktop *get_thread_desktop( struct thread *thread, unsigned int access );
158 extern void connect_process_winstation( struct process *process, struct thread *parent );
159 extern void set_process_default_desktop( struct process *process, struct desktop *desktop,
160                                          obj_handle_t handle );
161 extern void close_process_desktop( struct process *process );
162 extern void close_thread_desktop( struct thread *thread );
163 
164 #endif  /* __WINE_SERVER_USER_H */
165 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.