I'm aware that one is able to send messages down the msg loop to any program in windows.
what if I wanted to stop a timer of anther application?
I have all the handles in the world
any ideas?
thanx
Printable View
I'm aware that one is able to send messages down the msg loop to any program in windows.
what if I wanted to stop a timer of anther application?
I have all the handles in the world
any ideas?
thanx
Guess you would need to test for the different types of timers to
try to stop. Not sure if there is a difference in the message
stream. There is the timer control ocx, GetTickCount API for doing
a do while loop where you measure the time elapsed,
SetTimer/GetTimer/ClearTimer APIs, other do while datediff on
now - something < some delay amount, and the Sleep API.
So with all the different types of mehtds used to create a delay I
wonder how it would be done, if possible.
HTH
currently I use a standard timer to limit service of my application for un-registered users.
it works for 30 mins after that it closes.
anyways
I've read on the net that it's possible to kill a timer of another application by calling killTimer(hwnd)
I want to see if this is possible
and if so... how am I going to prevent someone from doing this to my app?
Someone could change the system time also to throw off the time
calculation too?
Not too sure but it doesn't look like it may be done from outside
the app? Read up on the APIs for timers here
HTH
not neccasarly..
the timer is set to fire ever 30 seconds
inside the timer routine I increment a static integer to count the cylcles
after 60 cycles have passed, 30 mins have gone by.
I still want to prevent people from disabling the timer
currently I can manually disable the timer using a debug program such as softice and creating a patch to actuall prevent the timer from loading
but that's too advanced for most users
I just want to prevent a majority of users from sending messages down the message scope to my application and disrupting my timer routine.
any ideas?