Package com.sun.jna.platform.win32
Class DdemlUtil.DdeAdapter
java.lang.Object
com.sun.jna.platform.win32.DdemlUtil.DdeAdapter
- All Implemented Interfaces:
AltCallingConvention
,Callback
,Ddeml.DdeCallback
,StdCall
,StdCallLibrary.StdCallCallback
- Enclosing class:
- DdemlUtil
DdeAdapter implements DdeCallback and allow dynamic registration for
mulitple handlers, that can be registered and unregistered at runtime.
- AdvstartHandler
- All registered AdvstartHandler are evaluated. If at least one returns true, the whole evaluation is considered true.
- AdvstopHandler
- All registered AdvstopHandler are invoked.
- ConnectHandler
- All registered ConnectHandler are evaluated. If at least one returns true, the whole evaluation is considered true.
- WildconnectHandler
- All registered WildconnectHandler are evaluated. The result is the union of all HSZPAIRs.
- ConnectConfirmHandler
- All registered ConnectConfirmHandler are evaluated.
- DisconnectHandler
- All registered DisconnectHandler are evaluated.
- ErrorHandler
- All registered ErrorHandler are evaluated.
- RegisterHandler
- All registered RegisterHandler are evaluated.
- XactCompleteHandler
- All registered XactCompleteHandler are evaluated.
- UnregisterHandler
- All registered UnregisterHandlers are evaluated.
- MonitorHandler
- All registered AdvstopHandler are invoked.
- AdvdataHandler
- The AdvdataHandlers are evaluated in registration order - evaluation stops after the first handler not returning Ddeml.FNOTPROCESSED.
- ExecuteHandler
- The ExecuteHandler are evaluated in registration order - evaluation stops after the first handler not returning Ddeml.FNOTPROCESSED.
- PokeHandler
- The PokeHandler are evaluated in registration order - evaluation stops after the first handler not returning Ddeml.FNOTPROCESSED.
- AdvreqHandler
- The AdvreqHandlers are evaluated in registration order - evaluation stops after the first handler returning a non null value.
- RequestHandler
- The RequestHandlers are evaluated in registration order - evaluation stops after the first handler returning a non null value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Callback
Callback.UncaughtExceptionHandler
-
Field Summary
Fields inherited from interface com.sun.jna.Callback
FORBIDDEN_NAMES, METHOD_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionddeCallback
(int wType, int wFmt, Ddeml.HCONV hConv, Ddeml.HSZ hsz1, Ddeml.HSZ hsz2, Ddeml.HDDEDATA hData, BaseTSD.ULONG_PTR lData1, BaseTSD.ULONG_PTR lData2) void
void
void
void
void
void
void
void
void
void
void
registerPokeHandler
(DdemlUtil.PokeHandler handler) void
void
void
void
void
void
setInstanceIdentifier
(int idInst) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Constructor Details
-
DdeAdapter
public DdeAdapter()
-
-
Method Details
-
setInstanceIdentifier
public void setInstanceIdentifier(int idInst) -
ddeCallback
public WinDef.PVOID ddeCallback(int wType, int wFmt, Ddeml.HCONV hConv, Ddeml.HSZ hsz1, Ddeml.HSZ hsz2, Ddeml.HDDEDATA hData, BaseTSD.ULONG_PTR lData1, BaseTSD.ULONG_PTR lData2) - Specified by:
ddeCallback
in interfaceDdeml.DdeCallback
-
registerAdvstartHandler
-
unregisterAdvstartHandler
-
registerAdvstopHandler
-
unregisterAdvstopHandler
-
registerConnectHandler
-
unregisterConnectHandler
-
registerAdvReqHandler
-
unregisterAdvReqHandler
-
registerRequestHandler
-
unregisterRequestHandler
-
registerWildconnectHandler
-
unregisterWildconnectHandler
-
registerAdvdataHandler
-
unregisterAdvdataHandler
-
registerExecuteHandler
-
unregisterExecuteHandler
-
registerPokeHandler
-
unregisterPokeHandler
-
registerConnectConfirmHandler
-
unregisterConnectConfirmHandler
-
registerDisconnectHandler
-
unregisterDisconnectHandler
-
registerErrorHandler
-
unregisterErrorHandler
-
registerRegisterHandler
-
unregisterRegisterHandler
-
registerXactCompleteHandler
-
xactCompleteXactCompleteHandler
-
registerUnregisterHandler
-
unregisterUnregisterHandler
-
registerMonitorHandler
-
unregisterMonitorHandler
-