File indexing completed on 2025-01-05 04:35:35
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2020-2022 Harald Sitter <sitter@kde.org> 0003 0004 #pragma once 0005 0006 // From winnt.h in mingw 0007 0008 #define ACTRL_RESERVED 0x00000000 0009 #define ACTRL_PERM_1 0x00000001 0010 #define ACTRL_PERM_2 0x00000002 0011 #define ACTRL_PERM_3 0x00000004 0012 #define ACTRL_PERM_4 0x00000008 0013 #define ACTRL_PERM_5 0x00000010 0014 #define ACTRL_PERM_6 0x00000020 0015 #define ACTRL_PERM_7 0x00000040 0016 #define ACTRL_PERM_8 0x00000080 0017 #define ACTRL_PERM_9 0x00000100 0018 #define ACTRL_PERM_10 0x00000200 0019 #define ACTRL_PERM_11 0x00000400 0020 #define ACTRL_PERM_12 0x00000800 0021 #define ACTRL_PERM_13 0x00001000 0022 #define ACTRL_PERM_14 0x00002000 0023 #define ACTRL_PERM_15 0x00004000 0024 #define ACTRL_PERM_16 0x00008000 0025 #define ACTRL_PERM_17 0x00010000 0026 #define ACTRL_PERM_18 0x00020000 0027 #define ACTRL_PERM_19 0x00040000 0028 #define ACTRL_PERM_20 0x00080000 0029 0030 #define ACTRL_ACCESS_ALLOWED 0x00000001 0031 #define ACTRL_ACCESS_DENIED 0x00000002 0032 #define ACTRL_AUDIT_SUCCESS 0x00000004 0033 #define ACTRL_AUDIT_FAILURE 0x00000008 0034 0035 #define ACTRL_ACCESS_PROTECTED 0x00000001 0036 0037 #define ACTRL_SYSTEM_ACCESS 0x04000000 0038 #define ACTRL_DELETE 0x08000000 0039 #define ACTRL_READ_CONTROL 0x10000000 0040 #define ACTRL_CHANGE_ACCESS 0x20000000 0041 #define ACTRL_CHANGE_OWNER 0x40000000 0042 #define ACTRL_SYNCHRONIZE 0x80000000 0043 #define ACTRL_STD_RIGHTS_ALL 0xf8000000 0044 #define ACTRL_STD_RIGHT_REQUIRED (ACTRL_STD_RIGHTS_ALL & ~ACTRL_SYNCHRONIZE) 0045 0046 #ifndef _DS_CONTROL_BITS_DEFINED_ 0047 #define _DS_CONTROL_BITS_DEFINED_ 0048 0049 #define ACTRL_DS_OPEN ACTRL_RESERVED 0050 #define ACTRL_DS_CREATE_CHILD ACTRL_PERM_1 0051 #define ACTRL_DS_DELETE_CHILD ACTRL_PERM_2 0052 #define ACTRL_DS_LIST ACTRL_PERM_3 0053 #define ACTRL_DS_SELF ACTRL_PERM_4 0054 #define ACTRL_DS_READ_PROP ACTRL_PERM_5 0055 #define ACTRL_DS_WRITE_PROP ACTRL_PERM_6 0056 #define ACTRL_DS_DELETE_TREE ACTRL_PERM_7 0057 #define ACTRL_DS_LIST_OBJECT ACTRL_PERM_8 0058 #define ACTRL_DS_CONTROL_ACCESS ACTRL_PERM_9 0059 #endif 0060 0061 #define ACTRL_FILE_READ ACTRL_PERM_1 0062 #define ACTRL_FILE_WRITE ACTRL_PERM_2 0063 #define ACTRL_FILE_APPEND ACTRL_PERM_3 0064 #define ACTRL_FILE_READ_PROP ACTRL_PERM_4 0065 #define ACTRL_FILE_WRITE_PROP ACTRL_PERM_5 0066 #define ACTRL_FILE_EXECUTE ACTRL_PERM_6 0067 #define ACTRL_FILE_READ_ATTRIB ACTRL_PERM_8 0068 #define ACTRL_FILE_WRITE_ATTRIB ACTRL_PERM_9 0069 #define ACTRL_FILE_CREATE_PIPE ACTRL_PERM_10 0070 #define ACTRL_DIR_LIST ACTRL_PERM_1 0071 #define ACTRL_DIR_CREATE_OBJECT ACTRL_PERM_2 0072 #define ACTRL_DIR_CREATE_CHILD ACTRL_PERM_3 0073 #define ACTRL_DIR_DELETE_CHILD ACTRL_PERM_7 0074 #define ACTRL_DIR_TRAVERSE ACTRL_PERM_6 0075 #define ACTRL_KERNEL_TERMINATE ACTRL_PERM_1 0076 #define ACTRL_KERNEL_THREAD ACTRL_PERM_2 0077 #define ACTRL_KERNEL_VM ACTRL_PERM_3 0078 #define ACTRL_KERNEL_VM_READ ACTRL_PERM_4 0079 #define ACTRL_KERNEL_VM_WRITE ACTRL_PERM_5 0080 #define ACTRL_KERNEL_DUP_HANDLE ACTRL_PERM_6 0081 #define ACTRL_KERNEL_PROCESS ACTRL_PERM_7 0082 #define ACTRL_KERNEL_SET_INFO ACTRL_PERM_8 0083 #define ACTRL_KERNEL_GET_INFO ACTRL_PERM_9 0084 #define ACTRL_KERNEL_CONTROL ACTRL_PERM_10 0085 #define ACTRL_KERNEL_ALERT ACTRL_PERM_11 0086 #define ACTRL_KERNEL_GET_CONTEXT ACTRL_PERM_12 0087 #define ACTRL_KERNEL_SET_CONTEXT ACTRL_PERM_13 0088 #define ACTRL_KERNEL_TOKEN ACTRL_PERM_14 0089 #define ACTRL_KERNEL_IMPERSONATE ACTRL_PERM_15 0090 #define ACTRL_KERNEL_DIMPERSONATE ACTRL_PERM_16 0091 #define ACTRL_PRINT_SADMIN ACTRL_PERM_1 0092 #define ACTRL_PRINT_SLIST ACTRL_PERM_2 0093 #define ACTRL_PRINT_PADMIN ACTRL_PERM_3 0094 #define ACTRL_PRINT_PUSE ACTRL_PERM_4 0095 #define ACTRL_PRINT_JADMIN ACTRL_PERM_5 0096 #define ACTRL_SVC_GET_INFO ACTRL_PERM_1 0097 #define ACTRL_SVC_SET_INFO ACTRL_PERM_2 0098 #define ACTRL_SVC_STATUS ACTRL_PERM_3 0099 #define ACTRL_SVC_LIST ACTRL_PERM_4 0100 #define ACTRL_SVC_START ACTRL_PERM_5 0101 #define ACTRL_SVC_STOP ACTRL_PERM_6 0102 #define ACTRL_SVC_PAUSE ACTRL_PERM_7 0103 #define ACTRL_SVC_INTERROGATE ACTRL_PERM_8 0104 #define ACTRL_SVC_UCONTROL ACTRL_PERM_9 0105 #define ACTRL_REG_QUERY ACTRL_PERM_1 0106 #define ACTRL_REG_SET ACTRL_PERM_2 0107 #define ACTRL_REG_CREATE_CHILD ACTRL_PERM_3 0108 #define ACTRL_REG_LIST ACTRL_PERM_4 0109 #define ACTRL_REG_NOTIFY ACTRL_PERM_5 0110 #define ACTRL_REG_LINK ACTRL_PERM_6 0111 #define ACTRL_WIN_CLIPBRD ACTRL_PERM_1 0112 #define ACTRL_WIN_GLOBAL_ATOMS ACTRL_PERM_2 0113 #define ACTRL_WIN_CREATE ACTRL_PERM_3 0114 #define ACTRL_WIN_LIST_DESK ACTRL_PERM_4 0115 #define ACTRL_WIN_LIST ACTRL_PERM_5 0116 #define ACTRL_WIN_READ_ATTRIBS ACTRL_PERM_6 0117 #define ACTRL_WIN_WRITE_ATTRIBS ACTRL_PERM_7 0118 #define ACTRL_WIN_SCREEN ACTRL_PERM_8 0119 #define ACTRL_WIN_EXIT ACTRL_PERM_9