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

1 /*
2 * The MIT License
3 *
4 * Copyright (c) 2010, CloudBees, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24 package hudson.util.jna;
25
26 import com.sun.jna.Pointer;
27 import com.sun.jna.Structure;
28
29 /**
30 *
31 * <pre>
32 typedef struct _SHELLEXECUTEINFO {
33 DWORD cbSize;
34 ULONG fMask;
35 HWND hwnd;
36 LPCTSTR lpVerb;
37 LPCTSTR lpFile;
38 LPCTSTR lpParameters;
39 LPCTSTR lpDirectory;
40 int nShow;
41 HINSTANCE hInstApp;
42 LPVOID lpIDList;
43 LPCTSTR lpClass;
44 HKEY hkeyClass;
45 DWORD dwHotKey;
46 union {
47 HANDLE hIcon;
48 HANDLE hMonitor;
49 } DUMMYUNIONNAME;
50 HANDLE hProcess;
51 } SHELLEXECUTEINFO, *LPSHELLEXECUTEINFO;
52 * </pre>
53 * @author Kohsuke Kawaguchi
54 * @see MSDN: http://msdn.microsoft.com/en-us/library/bb759784(v=VS.85).aspx
55 */
56 public class SHELLEXECUTEINFO extends Structure {
57 public int cbSize = size();
58 public int fMask;
59 public Pointer hwnd;
60 public String lpVerb;
61 public String lpFile;
62 public String lpParameters;
63 public String lpDirectory;
64 public int nShow = 1;
65 public Pointer hInstApp;
66 public Pointer lpIDList;
67 public String lpClass;
68 public Pointer hkeyClass;
69 public int dwHotKey;
70 public Pointer hIcon;
71 public Pointer hProcess;
72
73 public static final int SEE_MASK_NOCLOSEPROCESS = 0x40;
74 public static final int SW_HIDE = 0;
75 public static final int SW_SHOW = 0;
76 }
77