强制卸载DLL - ReleaseWindowsDll
函数简介
强制卸载已经注入到指定窗口的Hook DLL。
接口名称
ReleaseWindowsDll
DLL调用
int ReleaseWindowsDll(long ola, long hwnd);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 指定的窗口句柄。 |
示例
int ret = ReleaseWindowsDll(instance, hwnd);
printf("ReleaseWindowsDll ret=%d\n", ret);
返回值
1 成功,0 失败。
注意事项
- 此操作为强制卸载,会影响使用相同DLL的其他OLA对象。
- 卸载DLL后,相关的功能将无法使用。
