Make it (almost) 32 bit only.
[wine/dcerpc.git] / server / handle.h
blob5763714532e742ac61dfd8e7bcee330cae7b8d9f
1 /*
2 * Server-side handle definitions
4 * Copyright (C) 1999 Alexandre Julliard
5 */
7 #ifndef __WINE_SERVER_HANDLE_H
8 #define __WINE_SERVER_HANDLE_H
10 #ifndef __WINE_SERVER__
11 #error This file can only be used in the Wine server
12 #endif
14 #include <stdlib.h>
16 struct process;
17 struct object_ops;
19 /* handle functions */
21 /* alloc_handle takes a void *obj for convenience, but you better make sure */
22 /* that the thing pointed to starts with a struct object... */
23 extern int alloc_handle( struct process *process, void *obj,
24 unsigned int access, int inherit );
25 extern int close_handle( struct process *process, int handle );
26 extern struct object *get_handle_obj( struct process *process, int handle,
27 unsigned int access, const struct object_ops *ops );
28 extern int duplicate_handle( struct process *src, int src_handle, struct process *dst,
29 unsigned int access, int inherit, int options );
30 extern int open_object( const char *name, size_t len, const struct object_ops *ops,
31 unsigned int access, int inherit );
32 extern struct object *alloc_handle_table( struct process *process, int count );
33 extern struct object *copy_handle_table( struct process *process, struct process *parent );
34 extern void close_global_handles(void);
36 #endif /* __WINE_SERVER_HANDLE_H */