Code: Select all
B:>withdll.exe /d:[...]\IniHook.dll HookTarget.exe
withdll.exe: Error: [...]\IniHook.dll does not export ordinal #1.
See help entry DetourCreateProcessWithDllEx in Detours.chm.
Was könnte das Problem sein und wie kann man es beheben?
Mein Hook-Code ist
Code: Select all
#include "pch.h"
#define WIN32_LEAN_AND_MEAN
#include
#include
#include
#pragma comment(lib, "detours.lib")
typedef DWORD(WINAPI* GetPrivateProfileStringW_t)(LPCWSTR app, LPCWSTR key, LPCWSTR def, LPWSTR result, DWORD size, LPCWSTR file_name);
GetPrivateProfileStringW_t TrueGetPrivateProfileStringW = nullptr;
DWORD WINAPI HookedGetPrivateProfileStringW(LPCWSTR app, LPCWSTR key, LPCWSTR def, LPWSTR result, DWORD size, LPCWSTR file_name)
{
std::wcout