PageRenderTime 28ms CodeModel.GetById 19ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/hudson-core/src/main/java/hudson/util/jna/WINBASE.java

http://github.com/hudson/hudson
Java | 49 lines | 14 code | 3 blank | 32 comment | 0 complexity | 5db18bf0c38aefac0255adefd19f37fa MD5 | raw file
 1/*
 2Copyright (c) 2007 Thomas Boerkel, All Rights Reserved
 3
 4Disclaimer:
 5===========
 6This code is free software; you can redistribute it and/or
 7modify it under the terms of the GNU Lesser General Public
 8License as published by the Free Software Foundation; either
 9version 2.1 of the License, or (at your option) any later version.
10
11This code is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14Lesser General Public License for more details.
15 */
16package hudson.util.jna;
17
18import com.sun.jna.Structure;
19import com.sun.jna.Pointer;
20
21/**
22 *
23 * @author TB
24 */
25public interface WINBASE {
26/*
27typedef struct _SECURITY_ATTRIBUTES {
28  DWORD nLength;
29  LPVOID lpSecurityDescriptor;
30  BOOL bInheritHandle;
31} SECURITY_ATTRIBUTES,
32 *PSECURITY_ATTRIBUTES,
33 *LPSECURITY_ATTRIBUTES;*/
34  public static class SECURITY_ATTRIBUTES extends Structure {
35    public int nLength;
36    public Pointer lpSecurityDescriptor;
37    public boolean bInheritHandle;
38  }
39
40/*
41typedef struct _FILETIME {
42    DWORD dwLowDateTime;
43    DWORD dwHighDateTime;
44} FILETIME, *PFILETIME, *LPFILETIME;*/
45  public static class FILETIME extends Structure {
46    public int dwLowDateTime;
47    public int dwHighDateTime;
48  }
49}