branch update for HEAD-2003050101
[reactos.git] / include / ntos / synch.h
1 /*
2  * COPYRIGHT:    See COPYING in the top level directory
3  * PROJECT:      ReactOS kernel
4  * FILE:         include/ntos/synch.h
5  * PURPOSE:      Synchronization declarations used by all the parts of the 
6  *               system
7  * PROGRAMMER:   David Welch <welch@cwcom.net>
8  * UPDATE HISTORY: 
9  *               27/06/00: Created
10  */
11
12 #ifndef __INCLUDE_SYNCH_H
13 #define __INCLUDE_SYNCH_H
14
15 #ifndef __USE_W32API
16
17 #define EVENT_ALL_ACCESS        (0x1f0003L)
18 #define EVENT_MODIFY_STATE      (2)
19 #define EVENT_QUERY_STATE       (1)
20 #define EVENT_PAIR_ALL_ACCESS   (0x1f0000L)
21 #define MUTEX_ALL_ACCESS        (0x1f0001L)
22 #define MUTANT_ALL_ACCESS       (0x1f0001L)
23 #define MUTANT_QUERY_STATE      (1)
24 #define SEMAPHORE_ALL_ACCESS    (0x1f0003L)
25 #define SEMAPHORE_QUERY_STATE   (1)
26 #define SEMAPHORE_MODIFY_STATE  (2)
27 #define TIMER_ALL_ACCESS        (0x1f0003L)
28 #define TIMER_QUERY_STATE       (1)
29 #define TIMER_MODIFY_STATE      (2)
30 #define IO_COMPLETION_QUERY_STATE       (0x0001)
31 #define IO_COMPLETION_MODIFY_STATE      (0x0002)
32 #define IO_COMPLETION_ALL_ACCESS        (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
33
34 #endif /* !__USE_W32API */
35
36 #define MUTEX_QUERY_STATE       (1)
37
38 #endif /* __INCLUDE_SYNCH_H */