主题
恢复模块高级 - UnhideModuleEx
函数简介
恢复通过 HideModuleEx 在目标进程中隐藏的模块,并释放对应隐藏上下文。
接口名称
UnhideModuleExDLL调用
c
int UnhideModuleEx(long instance, long hwnd, long ctx);参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug实例指针,由 CreateCOLAPlugInterFace 接口生成。 |
| hwnd | 长整数型 | 目标窗口句柄,须与 HideModuleEx 指向同一进程。 |
| ctx | 长整数型 | 隐藏上下文句柄,由 HideModuleEx 返回,只能使用一次,不可重复释放。 |
示例
SDK 调用
cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
int ret = ola.UnhideModuleEx(hwnd, handle);csharp
using OLAPlug;
var ola = new OLAPlugServer();
int ret = ola.UnhideModuleEx(hwnd, handle);python
from OLAPlugServer import OLAPlugServer
ola = OLAPlugServer()
ret = ola.UnhideModuleEx(hwnd, handle)java
import com.olaplug.OLAPlugServer;
OLAPlugServer ola = new OLAPlugServer();
int ret = ola.UnhideModuleEx(hwnd, handle);go
import "github.com/ola/olaplug/olaplug"
ola, _ := olaplug.NewOLAPlugServer("OLAPlug_x64.dll")
defer ola.ReleaseObj()
ret := ola.UnhideModuleEx(hwnd, handle)rust
use olaplug::OLAPlugServer;
let ola = OLAPlugServer::new("OLAPlug_x64.dll").unwrap();
let ret = ola.unhide_module_ex(hwnd, handle);cpp
var ola = com("OlaPlug.OlaSoft")
var ret = ola.UnhideModuleEx(hwnd, handle)vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ret = ola.UnhideModuleEx(hwnd, handle)text
.局部变量 ola, OLAPlug
ola.创建 ()
ret = ola.UnhideModuleEx(hwnd, handle)aardio
import OLAPlugServer;
var ola = OLAPlugServer();
var ret = ola.UnhideModuleEx(hwnd, handle);text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
整数 ret = ola.UnhideModuleEx(hwnd, handle)cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
int32_t ret = ola.UnhideModuleEx(hwnd, handle);原生 DLL 调用
cpp
UnhideModuleEx(instance, hwnd, handle);csharp
using System.Runtime.InteropServices;
[DllImport("OLAPlug_x64.dll", CallingConvention = CallingConvention.StdCall)]
static extern int UnhideModuleEx(long ola, long hwnd, long ctx);
UnhideModuleEx(instance, hwnd, handle);python
from ctypes import CDLL, c_int64
ola = CDLL("OLAPlug_x64.dll")
ola.UnhideModuleEx(instance, hwnd, handle)返回值
| 返回值 | 说明 |
|---|---|
1 | 成功。 |
0 | 失败。 |
注意事项
| 项目 | 说明 |
|---|---|
| 上下文来源 | ctx 必须由 HideModuleEx 生成。 |
| 进程一致 | hwnd 须与隐藏时同一目标进程。 |
| 不可重复释放 | 释放后模块恢复显示,不可再次用同一 ctx 调用。 |
