在沙箱中添加了RegisterComApis函数声明,并在InitEnv函数中调用该函数以注册COM相关API。还更新了头文件以包含新函数的声明。

This commit is contained in:
huoji
2025-03-20 15:56:05 +08:00
parent a96ee2e166
commit bcf3cbe7ef
4 changed files with 258 additions and 1 deletions

View File

@@ -244,6 +244,9 @@ class Sandbox {
m_lastImpRead = {address, imp};
}
// 注册COM相关API
void RegisterComApis();
private:
std::shared_ptr<BasicPeInfo> m_peInfo;
std::pair<uint64_t, std::shared_ptr<moudle_import>> m_lastImpRead;