1
2
3
4 package org.sirius.server.win32.core;
5
6 import java.util.Arrays;
7 import java.util.List;
8
9 import com.sun.jna.Native;
10 import com.sun.jna.Structure;
11 import com.sun.jna.win32.StdCallLibrary;
12 import com.sun.jna.win32.W32APIOptions;
13
14
15
16
17
18 public interface CommCtl extends StdCallLibrary {
19 class INITCOMMONCONTROLSEX extends Structure {
20 public int dwSize = size();
21 public int dwICC;
22
23
24
25
26
27
28 @Override
29 protected List getFieldOrder() {
30 return Arrays.asList(new String[] { "dwSize", "dwICC" });
31
32 }
33 }
34
35 CommCtl INSTANCE = (CommCtl) Native.loadLibrary("Comctl32.dll",
36 CommCtl.class,
37 W32APIOptions.DEFAULT_OPTIONS);
38
39 boolean InitCommonControlsEx(INITCOMMONCONTROLSEX lpInitCtrls);
40
41 }