![]() |
|
#3
|
|||
|
|||
|
Thanks for your answer!
But: I'm new to Detours, and I'm having trouble to get your DLL to work... The current version of Detours deos not support "DetourFunction", I had to change the DLLMain function: Code:
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH && !bHooked)
{
bHooked = TRUE;
OrigGet = (PGET)DetourFindFunction("fastprox.dll", "?Get@CWbemObject@@UAGJPBGJPAUtagVARIANT@@PAJ2@Z");
DetourAttach(&(PVOID&)OrigGet, (LPBYTE)NewGet);
}
return TRUE;
}
Also I wonder how to inject this DLL into the .NET process... Could this be done using "DetourCreateProcessWithDllEx"? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .NET dll hooking | Avi_RE | General Discussion | 10 | 09-28-2023 07:09 |
| API Hooking | thomasantony | General Discussion | 5 | 04-22-2005 11:44 |
| API-hooking | MaRKuS-DJM | General Discussion | 11 | 03-25-2005 13:27 |
| C++ Help (Hooking a function) | Peter[Pan] | General Discussion | 8 | 08-31-2004 20:37 |