File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\util\jna\WINNT.java.html

1 /*
2 Copyright (c) 2007 Thomas Boerkel, All Rights Reserved
3
4 Disclaimer:
5 ===========
6 This code is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 This code is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15 */
16 package hudson.util.jna;
17
18 /**
19 *
20 * @author TB
21 */
22 public interface WINNT {
23 int DELETE = 0x00010000;
24 int READ_CONTROL = 0x00020000;
25 int WRITE_DAC = 0x00040000;
26 int WRITE_OWNER = 0x00080000;
27 int SYNCHRONIZE = 0x00100000;
28
29 int STANDARD_RIGHTS_REQUIRED = 0x000F0000;
30
31 int STANDARD_RIGHTS_READ = READ_CONTROL;
32 int STANDARD_RIGHTS_WRITE = READ_CONTROL;
33 int STANDARD_RIGHTS_EXECUTE = READ_CONTROL;
34
35 int STANDARD_RIGHTS_ALL = 0x001F0000;
36
37 int SPECIFIC_RIGHTS_ALL = 0x0000FFFF;
38
39 int GENERIC_EXECUTE = 0x20000000;
40
41 int SERVICE_WIN32_OWN_PROCESS = 0x00000010;
42
43 int KEY_QUERY_VALUE = 0x0001;
44 int KEY_SET_VALUE = 0x0002;
45 int KEY_CREATE_SUB_KEY = 0x0004;
46 int KEY_ENUMERATE_SUB_KEYS = 0x0008;
47 int KEY_NOTIFY = 0x0010;
48 int KEY_CREATE_LINK = 0x0020;
49
50 int KEY_READ = ((STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY) & (~SYNCHRONIZE));
51 int KEY_WRITE = ((STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & (~SYNCHRONIZE));
52
53 int REG_NONE = 0; // No value type
54 int REG_SZ = 1; // Unicode nul terminated string
55 int REG_EXPAND_SZ = 2; // Unicode nul terminated string
56 // (with environment variable references)
57 int REG_BINARY = 3; // Free form binary
58 int REG_DWORD = 4; // 32-bit number
59 int REG_DWORD_LITTLE_ENDIAN = 4; // 32-bit number (same as REG_DWORD)
60 int REG_DWORD_BIG_ENDIAN = 5; // 32-bit number
61 int REG_LINK = 6; // Symbolic Link (unicode)
62 int REG_MULTI_SZ = 7; // Multiple Unicode strings
63 int REG_RESOURCE_LIST = 8; // Resource list in the resource map
64 int REG_FULL_RESOURCE_DESCRIPTOR = 9; // Resource list in the hardware description
65 int REG_RESOURCE_REQUIREMENTS_LIST = 10;
66
67 int REG_OPTION_RESERVED = 0x00000000; // Parameter is reserved
68 int REG_OPTION_NON_VOLATILE = 0x00000000; // Key is preserved
69 // when system is rebooted
70 int REG_OPTION_VOLATILE = 0x00000001; // Key is not preserved
71 // when system is rebooted
72 int REG_OPTION_CREATE_LINK = 0x00000002; // Created key is a
73 // symbolic link
74 int REG_OPTION_BACKUP_RESTORE = 0x00000004; // open for backup or restore
75 // special access rules
76 // privilege required
77 int REG_OPTION_OPEN_LINK = 0x00000008; // Open symbolic link
78
79 }
80