b59b900fe2dd0cd00c733363b51a256023a95439
[openafs.git] / src / util / secutil_nt.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef TRANSARC_SECUTIL_NT_H
11 #define TRANSARC_SECUTIL_NT_H
12
13 /* Security related utilities for the Windows platform */
14
15 #include <windows.h>
16 #include <aclapi.h>
17
18 typedef enum _WELLKNOWN_TRUSTEE_ID {
19     WorldGroup = 1,
20     LocalAdministratorsGroup
21 } WELLKNOWN_TRUSTEE_ID;
22
23 DWORD
24 ObjectDaclEntryAdd(HANDLE objectHandle,
25                    SE_OBJECT_TYPE objectType,
26                    WELLKNOWN_TRUSTEE_ID trustee,
27                    DWORD accessPerm,
28                    ACCESS_MODE accessMode,
29                    DWORD inheritance);
30
31 #endif /* TRANSARC_SECUTIL_NT_H */