public class DllCall extends Object
Constructor and Description |
---|
DllCall() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
createAgentDllCall(Class<T> dllInterface,
Desktop desktop)
返回执行指定 Dll 调用接口的对象,该对象会将该接口的所有调用路由到将要加载 DLL 的代理,并执行调用。
|
static <T> T |
createInProcessDllCall(Class<T> dllInterface,
Desktop desktop)
返回执行指定 Dll 调用接口的对象,该对象会将该接口的所有调用路由到将要加载 DLL 的 AUT,并执行调用。
|
static void |
unloadAllDllsFromAgent(Desktop desktop)
从代理上卸载当前加载的所有 DLL。
|
static <T> boolean |
unloadDllFromAgent(Class<T> dll,
Desktop desktop)
将指定的 DLL 从代理上卸载。
|
public static <T> T createInProcessDllCall(Class<T> dllInterface, Desktop desktop)
T
- 要支持的 DLL 调用接口dllInterface
- 要支持的 DLL 调用接口desktop
- 桌面public static <T> T createAgentDllCall(Class<T> dllInterface, Desktop desktop)
T
- 要支持的 DLL 调用接口dllInterface
- 要支持的 DLL 调用接口类desktop
- public static <T> boolean unloadDllFromAgent(Class<T> dll, Desktop desktop)
T
- 要卸载的 DLL 类型dll
- 要卸载的 DLL 对象desktop
- public static void unloadAllDllsFromAgent(Desktop desktop)
desktop
- Copyright 2009-2012 Micro Focus. All Rights Reserved.