Moved DCX_* constants to winuser.h.
[wine/multimedia.git] / server / async.c
blobbcb5714a61c19110287c9b7870be817c780c8f08
1 /*
2 * Server-side support for async i/o operations
4 * Copyright (C) 1998 Alexandre Julliard
5 * Copyright (C) 2000 Mike McCormack
7 */
9 #include "config.h"
11 #include <assert.h>
12 #include <string.h>
13 #include <stdlib.h>
14 #include <unistd.h>
16 #include "handle.h"
17 #include "thread.h"
18 #include "request.h"
21 DECL_HANDLER(create_async)
23 struct object *obj;
25 if (!(obj = get_handle_obj( current->process, req->file_handle, 0, NULL)) )
26 return;
28 /* FIXME: check if this object is allowed to do overlapped I/O */
30 /* FIXME: this should be a function pointer */
31 req->timeout = get_serial_async_timeout(obj,req->type,req->count);
33 release_object(obj);