在运行时取消阻止应用程序

时间:2018-01-23 06:40:07

标签: c++ windows winapi

我在运行时取消阻塞可执行文件(这意味着我从应用程序中删除了:Zone.Identifier二进制代码。

我的问题是我是否必须重新启动应用程序才能使其运行,就像它开始时已被解锁一样。

这是应用程序:https://mobasuite.com/

    // Self-Unblocking
static const WCHAR stream_name[] = L":Zone.Identifier";
WCHAR fileName[MAX_PATH + _countof(stream_name)] = { 0 };
DWORD length = MAX_PATH;
QueryFullProcessImageName(GetCurrentProcess(), 0, fileName, &length);
wcscpy_s(fileName + length, _countof(fileName) - length, stream_name);
DeleteFile(fileName);

如果您可以帮助我,这将非常有用,因为它可以简化应用程序的安装过程。

0 个答案:

没有答案
相关问题