iconic wrote:WTSQuerySessionInformationW is ONLY exported from wtsapi32.dll and WinStationQueryInformationW is ONLY exported from winsta.dll - not the same dll involving both routines
--Iconic
madshi wrote:"-1" means success. However, if at the time you called HookAPI() the "wtsapi32.dll" wasn't loaded yet, HookAPI() will always return success because it can't know yet if installing the API hook will work or not.
Try calling LoadLibrary('wtsapi32.dll') before calling HookAPI(). Does HookAPI() still return -1 if you do that? And does the API hook work in that case?
Users browsing this forum: No registered users and 2 guests