1
2
3
4 package org.sirius.server.win32.core;
5
6 import com.sun.jna.Native;
7 import com.sun.jna.platform.win32.WinDef.HWND;
8 import com.sun.jna.win32.StdCallLibrary;
9 import com.sun.jna.win32.W32APIOptions;
10
11
12
13
14
15 public interface DlgWin32API extends StdCallLibrary {
16
17 DlgWin32API INSTANCE = (DlgWin32API) Native.loadLibrary(
18 "user32.dll", DlgWin32API.class,
19 W32APIOptions.DEFAULT_OPTIONS);
20
21 long GetDialogBaseUnits();
22
23 int GetDlgCtrlID(HWND hWnd);
24
25 HWND GetDlgItem(HWND hWnd, int itemId);
26
27 int GetDlgItemInt(HWND hWnd, int itemId, boolean pbool, boolean flag2);
28
29 int GetDlgItemTextA(HWND hWnd, int itemId, char[] text, int size);
30
31 int IsDlgButtonChecked(HWND hwnd, int itemId);
32
33 boolean SetDlgItemInt(HWND hwnd, int itenId, int intValue,
34 boolean flag);
35
36 boolean SetDlgItemTextA(HWND hwnd, int itemId, char[] text);
37
38 }