-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathWindowsFFM.java
More file actions
253 lines (191 loc) · 20.1 KB
/
Copy pathWindowsFFM.java
File metadata and controls
253 lines (191 loc) · 20.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
package javaforce.ffm;
import java.lang.foreign.*;
import java.lang.invoke.*;
import static java.lang.foreign.ValueLayout.*;
import javaforce.*;
import javaforce.ffm.*;
import javaforce.api.windows.*;
/** WindowsAPI FFM implementation.
*
* Generated by GenFFM - DO NOT EDIT
*/
public class WindowsFFM implements WindowsAPI {
private FFM ffm;
private static WindowsFFM instance;
public static synchronized WindowsFFM getInstance() {
if (instance == null) {
instance = new WindowsFFM();
if (!instance.ffm_init()) {
JFLog.log("WindowsFFM init failed!");
instance = null;
}
}
return instance;
}
private MethodHandle changerMove;
public boolean changerMove(long a1,java.lang.String a2,java.lang.String a3,java.lang.String a4) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)changerMove.invokeExact(a1,(MemorySegment)(a2 == null ? MemorySegment.NULL : arena.allocateFrom(a2)),(MemorySegment)(a3 == null ? MemorySegment.NULL : arena.allocateFrom(a3)),(MemorySegment)(a4 == null ? MemorySegment.NULL : arena.allocateFrom(a4)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle createProcessAsUser;
public boolean createProcessAsUser(java.lang.String a1,java.lang.String a2,java.lang.String a3,java.lang.String a4,java.lang.String a5,int a6) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)createProcessAsUser.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)),(MemorySegment)(a2 == null ? MemorySegment.NULL : arena.allocateFrom(a2)),(MemorySegment)(a3 == null ? MemorySegment.NULL : arena.allocateFrom(a3)),(MemorySegment)(a4 == null ? MemorySegment.NULL : arena.allocateFrom(a4)),(MemorySegment)(a5 == null ? MemorySegment.NULL : arena.allocateFrom(a5)),a6);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle impersonateUser;
public boolean impersonateUser(java.lang.String a1,java.lang.String a2,java.lang.String a3) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)impersonateUser.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)),(MemorySegment)(a2 == null ? MemorySegment.NULL : arena.allocateFrom(a2)),(MemorySegment)(a3 == null ? MemorySegment.NULL : arena.allocateFrom(a3)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle peekConsole;
public boolean peekConsole() { try { boolean _ret_value_ = (boolean)peekConsole.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle revertToSelf;
public boolean revertToSelf() { try { boolean _ret_value_ = (boolean)revertToSelf.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle setSessionID;
public boolean setSessionID(long a1,int a2) { try { boolean _ret_value_ = (boolean)setSessionID.invokeExact(a1,a2);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle shellExecute;
public boolean shellExecute(java.lang.String a1,java.lang.String a2,java.lang.String a3) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)shellExecute.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)),(MemorySegment)(a2 == null ? MemorySegment.NULL : arena.allocateFrom(a2)),(MemorySegment)(a3 == null ? MemorySegment.NULL : arena.allocateFrom(a3)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle tapeDrive;
public boolean tapeDrive(long a1) { try { boolean _ret_value_ = (boolean)tapeDrive.invokeExact(a1);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle tapeFormat;
public boolean tapeFormat(long a1,int a2) { try { boolean _ret_value_ = (boolean)tapeFormat.invokeExact(a1,a2);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle tapeMedia;
public boolean tapeMedia(long a1) { try { boolean _ret_value_ = (boolean)tapeMedia.invokeExact(a1);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle tapeMediaReadOnly;
public boolean tapeMediaReadOnly() { try { boolean _ret_value_ = (boolean)tapeMediaReadOnly.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle tapeSetpos;
public boolean tapeSetpos(long a1,long a2) { try { boolean _ret_value_ = (boolean)tapeSetpos.invokeExact(a1,a2);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle vssCreateShadow;
public boolean vssCreateShadow(java.lang.String a1,java.lang.String a2) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)vssCreateShadow.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)),(MemorySegment)(a2 == null ? MemorySegment.NULL : arena.allocateFrom(a2)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle vssDeleteShadow;
public boolean vssDeleteShadow(java.lang.String a1) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)vssDeleteShadow.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle vssDeleteShadowAll;
public boolean vssDeleteShadowAll() { try { boolean _ret_value_ = (boolean)vssDeleteShadowAll.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle vssInit;
public boolean vssInit() { try { boolean _ret_value_ = (boolean)vssInit.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle vssMountShadow;
public boolean vssMountShadow(java.lang.String a1,java.lang.String a2) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)vssMountShadow.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)),(MemorySegment)(a2 == null ? MemorySegment.NULL : arena.allocateFrom(a2)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle vssUnmountShadow;
public boolean vssUnmountShadow(java.lang.String a1) { try { Arena arena = Arena.ofAuto(); boolean _ret_value_ = (boolean)vssUnmountShadow.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return false;} }
private MethodHandle readConsole;
public char readConsole() { try { char _ret_value_ = (char)readConsole.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return (char)-1;} }
private MethodHandle getSessionID;
public int getSessionID() { try { int _ret_value_ = (int)getSessionID.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeDriveDefaultBlockSize;
public int tapeDriveDefaultBlockSize() { try { int _ret_value_ = (int)tapeDriveDefaultBlockSize.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeDriveMaxBlockSize;
public int tapeDriveMaxBlockSize() { try { int _ret_value_ = (int)tapeDriveMaxBlockSize.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeDriveMinBlockSize;
public int tapeDriveMinBlockSize() { try { int _ret_value_ = (int)tapeDriveMinBlockSize.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeLastError;
public int tapeLastError() { try { int _ret_value_ = (int)tapeLastError.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeMediaBlockSize;
public int tapeMediaBlockSize() { try { int _ret_value_ = (int)tapeMediaBlockSize.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeRead;
public int tapeRead(long a1,byte[] a2,int a3,int a4) { try { Arena arena = Arena.ofAuto(); MemorySegment _array_a2 = FFM.toMemory(arena, a2);int _ret_value_ = (int)tapeRead.invokeExact(a1,_array_a2,a3,a4);FFM.copyBack(_array_a2,a2);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeWrite;
public int tapeWrite(long a1,byte[] a2,int a3,int a4) { try { Arena arena = Arena.ofAuto(); MemorySegment _array_a2 = FFM.toMemory(arena, a2);int _ret_value_ = (int)tapeWrite.invokeExact(a1,_array_a2,a3,a4);FFM.copyBack(_array_a2,a2);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle getConsolePos;
public int[] getConsolePos() { try { FFM.createFFMArray();getConsolePos.invokeExact();return (int[])FFM.getArray(); } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle getConsoleSize;
public int[] getConsoleSize() { try { FFM.createFFMArray();getConsoleSize.invokeExact();return (int[])FFM.getArray(); } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle getWindowRect;
public int[] getWindowRect(java.lang.String a1) { try { Arena arena = Arena.ofAuto(); FFM.createFFMArray();getWindowRect.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)));return (int[])FFM.getArray(); } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle findJDKHome;
public java.lang.String findJDKHome() { try { String _ret_value_ = FFM.getString((MemorySegment)findJDKHome.invokeExact());return _ret_value_; } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle changerList;
public java.lang.String[] changerList(long a1) { try { FFM.createFFMArray();changerList.invokeExact(a1);return (java.lang.String[])FFM.getArray(); } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle vssListVols;
public java.lang.String[] vssListVols() { try { FFM.createFFMArray();vssListVols.invokeExact();return (java.lang.String[])FFM.getArray(); } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle vssListShadows;
public java.lang.String[][] vssListShadows() { try { FFM.createFFMArray();vssListShadows.invokeExact();return (java.lang.String[][])FFM.getArray(); } catch (Throwable t) { JFLog.log(t); return null;} }
private MethodHandle changerOpen;
public long changerOpen(java.lang.String a1) { try { Arena arena = Arena.ofAuto(); long _ret_value_ = (long)changerOpen.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle executeSession;
public long executeSession(java.lang.String a1,java.lang.String[] a2) { try { Arena arena = Arena.ofAuto(); MemorySegment _array_a2 = FFM.toMemory(arena, a2);long _ret_value_ = (long)executeSession.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)),_array_a2);FFM.copyBack(_array_a2,a2);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle peBegin;
public long peBegin(java.lang.String a1) { try { Arena arena = Arena.ofAuto(); long _ret_value_ = (long)peBegin.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeGetpos;
public long tapeGetpos(long a1) { try { long _ret_value_ = (long)tapeGetpos.invokeExact(a1);return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeMediaSize;
public long tapeMediaSize() { try { long _ret_value_ = (long)tapeMediaSize.invokeExact();return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle tapeOpen;
public long tapeOpen(java.lang.String a1) { try { Arena arena = Arena.ofAuto(); long _ret_value_ = (long)tapeOpen.invokeExact((MemorySegment)(a1 == null ? MemorySegment.NULL : arena.allocateFrom(a1)));return _ret_value_; } catch (Throwable t) { JFLog.log(t); return -1;} }
private MethodHandle changerClose;
public void changerClose(long a1) { try { changerClose.invokeExact(a1); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle closeSession;
public void closeSession(long a1) { try { closeSession.invokeExact(a1); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle disableConsoleMode;
public void disableConsoleMode() { try { disableConsoleMode.invokeExact(); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle enableConsoleMode;
public void enableConsoleMode() { try { enableConsoleMode.invokeExact(); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle peAddIcon;
public void peAddIcon(long a1,byte[] a2,int a3,int a4) { try { Arena arena = Arena.ofAuto(); MemorySegment _array_a2 = FFM.toMemory(arena, a2);peAddIcon.invokeExact(a1,_array_a2,a3,a4);FFM.copyBack(_array_a2,a2); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle peAddString;
public void peAddString(long a1,int a2,int a3,byte[] a4,int a5,int a6) { try { Arena arena = Arena.ofAuto(); MemorySegment _array_a4 = FFM.toMemory(arena, a4);peAddString.invokeExact(a1,a2,a3,_array_a4,a5,a6);FFM.copyBack(_array_a4,a4); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle peEnd;
public void peEnd(long a1) { try { peEnd.invokeExact(a1); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle setInputDesktop;
public void setInputDesktop() { try { setInputDesktop.invokeExact(); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle simulateCtrlAltDel;
public void simulateCtrlAltDel() { try { simulateCtrlAltDel.invokeExact(); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle tapeClose;
public void tapeClose(long a1) { try { tapeClose.invokeExact(a1); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle writeConsole;
public void writeConsole(int a1) { try { writeConsole.invokeExact(a1); } catch (Throwable t) { JFLog.log(t); } }
private MethodHandle writeConsoleArray;
public void writeConsoleArray(byte[] a1,int a2,int a3) { try { Arena arena = Arena.ofAuto(); MemorySegment _array_a1 = FFM.toMemory(arena, a1);writeConsoleArray.invokeExact(_array_a1,a2,a3);FFM.copyBack(_array_a1,a1); } catch (Throwable t) { JFLog.log(t); } }
private boolean ffm_init() {
if (FFM.debug) JFLog.log("WindowsFFM init started");
MethodHandle init;
ffm = FFM.getInstance();
init = ffm.getFunction("WindowsAPIinit", ffm.getFunctionDesciptor(ValueLayout.JAVA_BOOLEAN));
if (init == null) return false;
try {if (!(boolean)init.invokeExact()) return false;} catch (Throwable t) {JFLog.log(t); return false;}
changerMove = ffm.getFunctionPtr("_changerMove", ffm.getFunctionDesciptor(JAVA_BOOLEAN,JAVA_LONG,ADDRESS,ADDRESS,ADDRESS));
createProcessAsUser = ffm.getFunctionPtr("_createProcessAsUser", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS,ADDRESS,ADDRESS,ADDRESS,ADDRESS,JAVA_INT));
impersonateUser = ffm.getFunctionPtr("_impersonateUser", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS,ADDRESS,ADDRESS));
peekConsole = ffm.getFunctionPtr("_peekConsole", ffm.getFunctionDesciptor(JAVA_BOOLEAN));
revertToSelf = ffm.getFunctionPtr("_revertToSelf", ffm.getFunctionDesciptor(JAVA_BOOLEAN));
setSessionID = ffm.getFunctionPtr("_setSessionID", ffm.getFunctionDesciptor(JAVA_BOOLEAN,JAVA_LONG,JAVA_INT));
shellExecute = ffm.getFunctionPtr("_shellExecute", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS,ADDRESS,ADDRESS));
tapeDrive = ffm.getFunctionPtr("_tapeDrive", ffm.getFunctionDesciptor(JAVA_BOOLEAN,JAVA_LONG));
tapeFormat = ffm.getFunctionPtr("_tapeFormat", ffm.getFunctionDesciptor(JAVA_BOOLEAN,JAVA_LONG,JAVA_INT));
tapeMedia = ffm.getFunctionPtr("_tapeMedia", ffm.getFunctionDesciptor(JAVA_BOOLEAN,JAVA_LONG));
tapeMediaReadOnly = ffm.getFunctionPtr("_tapeMediaReadOnly", ffm.getFunctionDesciptor(JAVA_BOOLEAN));
tapeSetpos = ffm.getFunctionPtr("_tapeSetpos", ffm.getFunctionDesciptor(JAVA_BOOLEAN,JAVA_LONG,JAVA_LONG));
vssCreateShadow = ffm.getFunctionPtr("_vssCreateShadow", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS,ADDRESS));
vssDeleteShadow = ffm.getFunctionPtr("_vssDeleteShadow", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS));
vssDeleteShadowAll = ffm.getFunctionPtr("_vssDeleteShadowAll", ffm.getFunctionDesciptor(JAVA_BOOLEAN));
vssInit = ffm.getFunctionPtr("_vssInit", ffm.getFunctionDesciptor(JAVA_BOOLEAN));
vssMountShadow = ffm.getFunctionPtr("_vssMountShadow", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS,ADDRESS));
vssUnmountShadow = ffm.getFunctionPtr("_vssUnmountShadow", ffm.getFunctionDesciptor(JAVA_BOOLEAN,ADDRESS));
readConsole = ffm.getFunctionPtr("_readConsole", ffm.getFunctionDesciptor(JAVA_CHAR));
getSessionID = ffm.getFunctionPtr("_getSessionID", ffm.getFunctionDesciptor(JAVA_INT));
tapeDriveDefaultBlockSize = ffm.getFunctionPtr("_tapeDriveDefaultBlockSize", ffm.getFunctionDesciptor(JAVA_INT));
tapeDriveMaxBlockSize = ffm.getFunctionPtr("_tapeDriveMaxBlockSize", ffm.getFunctionDesciptor(JAVA_INT));
tapeDriveMinBlockSize = ffm.getFunctionPtr("_tapeDriveMinBlockSize", ffm.getFunctionDesciptor(JAVA_INT));
tapeLastError = ffm.getFunctionPtr("_tapeLastError", ffm.getFunctionDesciptor(JAVA_INT));
tapeMediaBlockSize = ffm.getFunctionPtr("_tapeMediaBlockSize", ffm.getFunctionDesciptor(JAVA_INT));
tapeRead = ffm.getFunctionPtr("_tapeRead", ffm.getFunctionDesciptor(JAVA_INT,JAVA_LONG,ADDRESS,JAVA_INT,JAVA_INT));
tapeWrite = ffm.getFunctionPtr("_tapeWrite", ffm.getFunctionDesciptor(JAVA_INT,JAVA_LONG,ADDRESS,JAVA_INT,JAVA_INT));
getConsolePos = ffm.getFunctionPtr("_getConsolePos", ffm.getFunctionDesciptorVoid());
getConsoleSize = ffm.getFunctionPtr("_getConsoleSize", ffm.getFunctionDesciptorVoid());
getWindowRect = ffm.getFunctionPtr("_getWindowRect", ffm.getFunctionDesciptorVoid(ADDRESS));
findJDKHome = ffm.getFunctionPtr("_findJDKHome", ffm.getFunctionDesciptor(ADDRESS));
changerList = ffm.getFunctionPtr("_changerList", ffm.getFunctionDesciptorVoid(JAVA_LONG));
vssListVols = ffm.getFunctionPtr("_vssListVols", ffm.getFunctionDesciptorVoid());
vssListShadows = ffm.getFunctionPtr("_vssListShadows", ffm.getFunctionDesciptorVoid());
changerOpen = ffm.getFunctionPtr("_changerOpen", ffm.getFunctionDesciptor(JAVA_LONG,ADDRESS));
executeSession = ffm.getFunctionPtr("_executeSession", ffm.getFunctionDesciptor(JAVA_LONG,ADDRESS,ADDRESS));
peBegin = ffm.getFunctionPtr("_peBegin", ffm.getFunctionDesciptor(JAVA_LONG,ADDRESS));
tapeGetpos = ffm.getFunctionPtr("_tapeGetpos", ffm.getFunctionDesciptor(JAVA_LONG,JAVA_LONG));
tapeMediaSize = ffm.getFunctionPtr("_tapeMediaSize", ffm.getFunctionDesciptor(JAVA_LONG));
tapeOpen = ffm.getFunctionPtr("_tapeOpen", ffm.getFunctionDesciptor(JAVA_LONG,ADDRESS));
changerClose = ffm.getFunctionPtr("_changerClose", ffm.getFunctionDesciptorVoid(JAVA_LONG));
closeSession = ffm.getFunctionPtr("_closeSession", ffm.getFunctionDesciptorVoid(JAVA_LONG));
disableConsoleMode = ffm.getFunctionPtr("_disableConsoleMode", ffm.getFunctionDesciptorVoid());
enableConsoleMode = ffm.getFunctionPtr("_enableConsoleMode", ffm.getFunctionDesciptorVoid());
peAddIcon = ffm.getFunctionPtr("_peAddIcon", ffm.getFunctionDesciptorVoid(JAVA_LONG,ADDRESS,JAVA_INT,JAVA_INT));
peAddString = ffm.getFunctionPtr("_peAddString", ffm.getFunctionDesciptorVoid(JAVA_LONG,JAVA_INT,JAVA_INT,ADDRESS,JAVA_INT,JAVA_INT));
peEnd = ffm.getFunctionPtr("_peEnd", ffm.getFunctionDesciptorVoid(JAVA_LONG));
setInputDesktop = ffm.getFunctionPtr("_setInputDesktop", ffm.getFunctionDesciptorVoid());
simulateCtrlAltDel = ffm.getFunctionPtr("_simulateCtrlAltDel", ffm.getFunctionDesciptorVoid());
tapeClose = ffm.getFunctionPtr("_tapeClose", ffm.getFunctionDesciptorVoid(JAVA_LONG));
writeConsole = ffm.getFunctionPtr("_writeConsole", ffm.getFunctionDesciptorVoid(JAVA_INT));
writeConsoleArray = ffm.getFunctionPtr("_writeConsoleArray", ffm.getFunctionDesciptorVoid(ADDRESS,JAVA_INT,JAVA_INT));
if (FFM.debug) JFLog.log("WindowsFFM init complete");
return true;
}
}