M$ doesn't support unicode in GetProcAddress API unfortunately so how can we fix this problem? I used PBOSL_LoadDllMemory but it doesn't work too in unicode...
I using this API for start hook, this is example:
Code: Select all
#WH_CALLWNDPROCRET = 12
threadID = GetWindowThreadProcessId_(WindowID, @processID)
hDLL = OpenLibrary(0,"c:\1.dll")
SetWindowsHookEx_(#WH_CALLWNDPROCRET, GetProcAddress_(hDLL, "MyCallWndRetProc"), hDLL, threadID)