mirror of
https://github.com/reactos/wine.git
synced 2024-12-05 10:17:57 +00:00
5bc78089db
A few other optimizations in request processing in the server. Moved automatically generated request definitions to server.h and removed include/server/request.h.
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/*
|
|
* Server-side handle definitions
|
|
*
|
|
* Copyright (C) 1999 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_SERVER_HANDLE_H
|
|
#define __WINE_SERVER_HANDLE_H
|
|
|
|
#ifndef __WINE_SERVER__
|
|
#error This file can only be used in the Wine server
|
|
#endif
|
|
|
|
#include <stdlib.h>
|
|
|
|
struct process;
|
|
struct object_ops;
|
|
|
|
/* handle functions */
|
|
|
|
/* alloc_handle takes a void *obj for convenience, but you better make sure */
|
|
/* that the thing pointed to starts with a struct object... */
|
|
extern int alloc_handle( struct process *process, void *obj,
|
|
unsigned int access, int inherit );
|
|
extern int close_handle( struct process *process, int handle );
|
|
extern struct object *get_handle_obj( struct process *process, int handle,
|
|
unsigned int access, const struct object_ops *ops );
|
|
extern int duplicate_handle( struct process *src, int src_handle, struct process *dst,
|
|
unsigned int access, int inherit, int options );
|
|
extern int open_object( const char *name, size_t len, const struct object_ops *ops,
|
|
unsigned int access, int inherit );
|
|
extern struct object *alloc_handle_table( struct process *process, int count );
|
|
extern struct object *copy_handle_table( struct process *process, struct process *parent );
|
|
extern void close_global_handles(void);
|
|
|
|
#endif /* __WINE_SERVER_HANDLE_H */
|