反编译之问题
#include "stdafx.h"
#include<stdlib.h>
#include"windows.h"
typedef int(*Func_SetMyHook)();
int _tmain(int argc, _TCHAR* argv[])
{
Func_SetMyHook FtSetMyHook;
HINSTANCE hLib;
hLib = LoadLibrary(TEXT("C:\\Windows\\System32\\HookHide.dll"));
if (NULL == hLib)
{
hLib = LoadLibrary(TEXT("C:\\Windows\\SysWOW64\\HookHide.dll"));
if (NULL == hLib)
{
hLib = LoadLibrary(TEXT("HookHide.dll"));
if (NULL == hLib)
{
puts("载入DLL文件失败!");
exit(0);
}
}
}
FtSetMyHook = (Func_SetMyHook)(hLib, "SetMyHook");
// const char* pro = "testHookHide.exe";
// FtSetMyHook(pro);
return 0;
}
error C2440: “类型转换”: 无法从“const char [10]”转换为“Func_SetMyHook” s