Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a vb.net project have a COM object, but this COM work only with year from 2019. I dont want to change the windows system time, i want using hook instead. Please help me:
How to hook win api kernel32.dll getsystemtime, getlocaltime and change the only for my app

What I have tried:

Setwindowhookex
Callnexthook
unhookwindow
Posted
Updated 19-Apr-22 22:06pm
Comments
Richard Deeming 20-Apr-22 4:14am    
Sounds like you're asking us to help you circumvent a licensing restriction on a commercial component. That's the sort of thing that will get you banned from this site.

1 solution

You cannot hook specific Windows system calls, only messages: SetWindowsHookExA function (winuser.h) - Win32 apps | Microsoft Docs[^].
 
Share this answer
 
Comments
CPallini 20-Apr-22 8:02am    
5.
Member 13153643 20-Apr-22 21:15pm    
Thankyou, Can i using Easyhook to Hook "Kernel32.dll" with function "GetSystemTime". But I don't know to using Easyhook. Can you help me, Thank you
Richard MacCutchan 21-Apr-22 3:45am    
No idea, what does the documentation say?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900