Shell32X.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 2015 iZc
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program 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
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. package de.nplusc.izc.tools.WinToolz;
  18. import com.sun.jna.Native;
  19. import com.sun.jna.platform.win32.Shell32;
  20. import com.sun.jna.win32.W32APIOptions;
  21. public interface Shell32X extends Shell32
  22. {
  23. Shell32X INSTANCE = (Shell32X)Native.loadLibrary("shell32", Shell32X.class, W32APIOptions.UNICODE_OPTIONS);
  24. int SW_HIDE = 0;
  25. int SW_MAXIMIZE = 3;
  26. int SW_MINIMIZE = 6;
  27. int SW_RESTORE = 9;
  28. int SW_SHOW = 5;
  29. int SW_SHOWDEFAULT = 10;
  30. int SW_SHOWMAXIMIZED = 3;
  31. int SW_SHOWMINIMIZED = 2;
  32. int SW_SHOWMINNOACTIVE = 7;
  33. int SW_SHOWNA = 8;
  34. int SW_SHOWNOACTIVATE = 4;
  35. int SW_SHOWNORMAL = 1;
  36. /** File not found. */
  37. int SE_ERR_FNF = 2;
  38. /** Path not found. */
  39. int SE_ERR_PNF = 3;
  40. /** Access denied. */
  41. int SE_ERR_ACCESSDENIED = 5;
  42. /** Out of memory. */
  43. int SE_ERR_OOM = 8;
  44. /** DLL not found. */
  45. int SE_ERR_DLLNOTFOUND = 32;
  46. /** Cannot share an open file. */
  47. int SE_ERR_SHARE = 26;
  48. int SEE_MASK_NOCLOSEPROCESS = 0x00000040;
  49. int ShellExecute(int i, String lpVerb, String lpFile, String lpParameters, String lpDirectory, int nShow);
  50. boolean ShellExecuteEx(SHELLEXECUTEINFO lpExecInfo);
  51. }