Added TEB in init_thread request.
[wine/multimedia.git] / server / process.h
blob341444315b3a47a50365ea8f1c13274f9238241d
1 /*
2 * Wine server processes
4 * Copyright (C) 1999 Alexandre Julliard
5 */
7 #ifndef __WINE_SERVER_PROCESS_H
8 #define __WINE_SERVER_PROCESS_H
10 #ifndef __WINE_SERVER__
11 #error This file can only be used in the Wine server
12 #endif
14 #include "object.h"
16 /* process structures */
18 struct process;
19 struct handle_table;
21 struct process_snapshot
23 struct process *process; /* process ptr */
24 struct process *parent; /* process parent */
25 int threads; /* number of threads */
26 int priority; /* priority class */
29 /* process functions */
31 extern struct process *create_initial_process(void);
32 extern struct process *get_process_from_id( void *id );
33 extern struct process *get_process_from_handle( int handle, unsigned int access );
34 extern struct handle_table *get_process_handles( struct process *process );
35 extern void add_process_thread( struct process *process,
36 struct thread *thread );
37 extern void remove_process_thread( struct process *process,
38 struct thread *thread );
39 extern int alloc_console( struct process *process );
40 extern int free_console( struct process *process );
41 extern struct object *get_console( struct process *process, int output );
42 extern struct process_snapshot *process_snap( int *count );
44 #endif /* __WINE_SERVER_PROCESS_H */