Make GetVolumeInformation default to reporting NTFS for non-FAT
[wine/multimedia.git] / server / user.h
blob62bc80d8946e388a4c7a88e7d7ba4c02cd31006d
1 /*
2 * Wine server USER definitions
4 * Copyright (C) 2001 Alexandre Julliard
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.
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.
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
21 #ifndef __WINE_SERVER_USER_H
22 #define __WINE_SERVER_USER_H
24 #include "wine/server_protocol.h"
26 struct thread;
27 struct window;
28 struct msg_queue;
29 struct hook_table;
30 struct window_class;
32 enum user_object
34 USER_WINDOW = 1,
35 USER_HOOK
38 /* user handles functions */
40 extern user_handle_t alloc_user_handle( void *ptr, enum user_object type );
41 extern void *get_user_object( user_handle_t handle, enum user_object type );
42 extern void *get_user_object_handle( user_handle_t *handle, enum user_object type );
43 extern user_handle_t get_user_full_handle( user_handle_t handle );
44 extern void *free_user_handle( user_handle_t handle );
45 extern void *next_user_handle( user_handle_t *handle, enum user_object type );
47 /* clipboard functions */
49 extern void cleanup_clipboard_thread( struct thread *thread );
51 /* hook functions */
53 extern void close_global_hooks(void);
54 extern void remove_thread_hooks( struct thread *thread );
56 /* queue functions */
58 extern void free_msg_queue( struct thread *thread );
59 extern struct hook_table *get_queue_hooks( struct thread *thread );
60 extern void set_queue_hooks( struct thread *thread, struct hook_table *hooks );
61 extern void inc_queue_paint_count( struct thread *thread, int incr );
62 extern void queue_cleanup_window( struct thread *thread, user_handle_t win );
63 extern int attach_thread_input( struct thread *thread_from, struct thread *thread_to );
64 extern void post_message( user_handle_t win, unsigned int message,
65 unsigned int wparam, unsigned int lparam );
67 /* window functions */
69 extern void destroy_thread_windows( struct thread *thread );
70 extern int is_child_window( user_handle_t parent, user_handle_t child );
71 extern int is_top_level_window( user_handle_t window );
72 extern int make_window_active( user_handle_t window );
73 extern struct thread *get_window_thread( user_handle_t handle );
74 extern user_handle_t window_from_point( int x, int y );
75 extern user_handle_t find_window_to_repaint( user_handle_t parent, struct thread *thread );
76 extern struct window_class *get_window_class( user_handle_t window );
78 /* window class functions */
80 extern void destroy_process_classes( struct process *process );
81 extern struct window_class *grab_class( struct process *process, atom_t atom,
82 void *instance, int *extra_bytes );
83 extern void release_class( struct window_class *class );
84 extern atom_t get_class_atom( struct window_class *class );
85 extern void *get_class_client_ptr( struct window_class *class );
87 #endif /* __WINE_SERVER_USER_H */