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