|
-
Sep 20th, 2004, 01:39 PM
#1
Thread Starter
Fanatic Member
Disable Timer in Another Application
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
-
Sep 20th, 2004, 09:47 PM
#2
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 22nd, 2004, 12:26 PM
#3
Thread Starter
Fanatic Member
hmm
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?
-
Sep 22nd, 2004, 01:09 PM
#4
Someone could change the system time also to throw off the time
calculation too?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 22nd, 2004, 01:14 PM
#5
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
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 22nd, 2004, 01:15 PM
#6
Thread Starter
Fanatic Member
hmm
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|