Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
LnkEnums.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2012 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.coreutils;
20 
25 class LnkEnums {
26 
27  private static final byte[] CDRIVES = new byte[]{(byte) 0xe0, 0x4f, (byte) 0xd0, 0x20,
28  (byte) 0xea, 0x3a, 0x69, 0x10, (byte) 0xa2, (byte) 0xd8, 0x08, 0x00, 0x2b, 0x30, 0x30, (byte) 0x9d};
29  private static final byte[] CMYDOCS = new byte[]{(byte) 0xba, (byte) 0x8a, 0x0d,
30  0x45, 0x25, (byte) 0xad, (byte) 0xd0, 0x11, (byte) 0x98, (byte) 0xa8, 0x08, 0x00, 0x36, 0x1b, 0x11, 0x03};
31  private static final byte[] IEFRAME = new byte[]{(byte) 0x80, 0x53, 0x1c, (byte) 0x87, (byte) 0xa0,
32  0x42, 0x69, 0x10, (byte) 0xa2, (byte) 0xea, 0x08, 0x00, 0x2b, 0x30, 0x30, (byte) 0x9d};
33 
34  public enum CommonCLSIDS {
35 
36  CDrivesFolder(CDRIVES),
37  CMyDocsFolder(CMYDOCS),
38  IEFrameDLL(IEFRAME),
39  Unknown(new byte[16]);
40 
41  private byte[] flag;
42 
43  private CommonCLSIDS(byte[] flag) {
44  this.flag = flag;
45  }
46 
47  static CommonCLSIDS valueOf(byte[] type) {
48  for (CommonCLSIDS value : CommonCLSIDS.values()) {
49  if (java.util.Arrays.equals(value.flag, type)) {
50  return value;
51  }
52  }
53  return Unknown;
54  }
55  }
56 
57  public enum LinkFlags {
58 
59  HasLinkTargetIDList(0x00000001),
60  HasLinkInfo(0x00000002),
61  HasName(0x00000004),
62  HasRelativePath(0x00000008),
63  HasWorkingDir(0x00000010),
64  HasArguments(0x00000020),
65  HasIconLocation(0x00000040),
66  IsUnicode(0x00000080),
67  ForceNoLinkInfo(0x00000100),
68  HasExpString(0x00000200),
69  RunInSeparateProcess(0x00000400),
70  Unused1(0x00000800),
71  HasDarwinID(0x00001000),
72  RunAsUser(0x00002000),
73  HasExpIcon(0x00004000),
74  NoPidlAlias(0x00008000),
75  Unused2(0x00010000),
76  RunWithShimLayer(0x00020000),
77  ForceNoLinkTrack(0x00040000),
78  EnableTargetMetaData(0x00080000),
82  AllowLinkToLink(0x00800000),
83  UnaliasOnSave(0x01000000),
84  PreferEnvironmentPath(0x02000000),
86 
87  private int flag;
88 
89  private LinkFlags(int flag) {
90  this.flag = flag;
91  }
92 
93  public int getFlag() {
94  return flag;
95  }
96  }
97 
98  public enum DriveType {
99 
100  DRIVE_UNKNOWN(0x00000000),
101  DRIVE_NO_ROOT_DIR(0x00000001),
102  DRIVE_REMOVABLE(0x00000002),
103  DRIVE_FIXED(0x00000003),
104  DRIVE_REMOTE(0x00000004),
105  DRIVE_CDROM(0x00000005),
106  DRIVE_RAMDISK(0x00000006);
107 
108  private int flag;
109 
110  private DriveType(int flag) {
111  this.flag = flag;
112  }
113 
114  public int getFlag() {
115  return flag;
116  }
117 
118  static DriveType valueOf(int type) {
119  for (DriveType value : DriveType.values()) {
120  if (value.flag == type) {
121  return value;
122  }
123  }
124  return DRIVE_UNKNOWN;
125  }
126  }
127 
128  public enum FileAttributesFlags {
129 
130  READONLY(0x00000001),
131  HIDDEN(0x00000002),
132  SYSTEM(0x00000004),
133  RESERVED1(0x00000008),
134  DIRECTORY(0x00000010),
135  ARCHIVE(0x00000020),
136  RESERVED2(0x00000040),
137  NORMAL(0x00000080),
138  TEMPORARY(0x00000100),
139  SPARSE_FILE(0x00000200),
140  REPARSE_POINT(0x00000400),
141  COMPRESSED(0x00000800),
142  OFFLINE(0x00001000),
143  NOT_CONTENT_INDEXED(0x00002000),
144  ENCRYPTED(0x00004000);
145 
146  private int flag;
147 
148  private FileAttributesFlags(int flag) {
149  this.flag = flag;
150  }
151 
152  public int getFlag() {
153  return flag;
154  }
155  }
156 
157  public enum LinkInfoFlags {
158 
161 
162  private int flag;
163 
164  private LinkInfoFlags(int flag) {
165  this.flag = flag;
166  }
167 
168  public int getFlag() {
169  return flag;
170  }
171  }
172 
174 
175  ValidDevice(0x00000001),
176  ValidNetType(0x00000002);
177 
178  private int flag;
179 
180  private CommonNetworkRelativeLinkFlags(int flag) {
181  this.flag = flag;
182  }
183 
184  public int getFlag() {
185  return flag;
186  }
187  }
188 
189  public enum NetworkProviderType {
190 
191  WNNC_NET_AVID(0x001A0000),
192  WNNC_NET_DOCUSPACE(0x001B0000),
193  WNNC_NET_MANGOSOFT(0x001C0000),
194  WNNC_NET_SERNET(0x001D0000),
195  WNNC_NET_RIVERFRONT1(0x001E0000),
196  WNNC_NET_RIVERFRONT2(0x001F0000),
197  WNNC_NET_DECORB(0x00200000),
198  WNNC_NET_PROTSTOR(0x00210000),
199  WNNC_NET_FJ_REDIR(0x00220000),
200  WNNC_NET_DISTINCT(0x00230000),
201  WNNC_NET_TWINS(0x00240000),
202  WNNC_NET_RDR2SAMPLE(0x00250000),
203  WNNC_NET_CSC(0x00260000),
204  WNNC_NET_3IN1(0x00270000),
205  WNNC_NET_EXTENDNET(0x00290000),
206  WNNC_NET_STAC(0x002A0000),
207  WNNC_NET_FOXBAT(0x002B0000),
208  WNNC_NET_YAHOO(0x002C0000),
209  WNNC_NET_EXIFS(0x002D0000),
210  WNNC_NET_DAV(0x002E0000),
211  WNNC_NET_KNOWARE(0x002F0000),
212  WNNC_NET_OBJECT_DIRE(0x00300000),
213  WNNC_NET_MASFAX(0x00310000),
214  WNNC_NET_HOB_NFS(0x00320000),
215  WNNC_NET_SHIVA(0x00330000),
216  WNNC_NET_IBMAL(0x00340000),
217  WNNC_NET_LOCK(0x00350000),
218  WNNC_NET_TERMSRV(0x00360000),
219  WNNC_NET_SRT(0x00370000),
220  WNNC_NET_QUINCY(0x00380000),
221  WNNC_NET_OPENAFS(0x00390000),
222  WNNC_NET_AVID1(0x003A0000),
223  WNNC_NET_DFS(0x003B0000),
224  WNNC_NET_KWNP(0x003C0000),
225  WNNC_NET_ZENWORKS(0x003D0000),
226  WNNC_NET_DRIVEONWEB(0x003E0000),
227  WNNC_NET_VMWARE(0x003F0000),
228  WNNC_NET_RSFX(0x00400000),
229  WNNC_NET_MFILES(0x00410000),
230  WNNC_NET_MS_NFS(0x00420000),
231  WNNC_NET_GOOGLE(0x00430000),
232  WNNC_NET_UNKNOWN(0x00000000);
233 
234  private int flag;
235 
236  private NetworkProviderType(int flag) {
237  this.flag = flag;
238  }
239 
240  static NetworkProviderType valueOf(int type) {
241  for (NetworkProviderType value : NetworkProviderType.values()) {
242  if (value.flag == type) {
243  return value;
244  }
245  }
246  return WNNC_NET_UNKNOWN;
247  }
248 
249  public int getFlag() {
250  return flag;
251  }
252  }
253 }
static CommonCLSIDS valueOf(byte[] type)
Definition: LnkEnums.java:47

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.