Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys,
Is it possible to deactivate all or any of system events?

What I have tried:

I tried to find something on the net, but no luck!
Posted
Updated 25-Jun-16 9:25am
Comments
Patrice T 24-Jun-16 14:01pm    
Give details on context.
What is the goal ?

Quote:
Is it possible to deactivate all or any of system events?
'Desactivate' is a bad idea.
The OS handles system events, but don't 'Desactivate' them. System events are here for a good reason, just desactivate them is weird.
I suspect you try to do this as a solution to another problem that you should explain.

Explain the root problem, another solution may exist.
 
Share this answer
 
Comments
Sh.H. 26-Jun-16 13:38pm    
Ok...
The main problem:
I need to turn off (or standby) the monitor.
But I don't want it turns on with any activity.
I need it turns on via a special key.
I should add that, Teamviewer can do this! And I don't know how this software can do this!
So, could you please help me?
That depends on exactly what you mean by "deactivate a system event".

At face value, no it's not possible to turn off the raising of a system event.

You can, however, just not subscribe to the them. If you don't have a handler for the event, nothing happens in your code when the event is raised.
 
Share this answer
 
Comments
Sh.H. 25-Jun-16 11:49am    
Yes it happen.
For example when the monitor is in sleep, any events will wake it up.
So whether I have handler for events or not, the monitor wakes up.
This is why I want to deactive events.
So do you have any idea?
Dave Kreskowiak 25-Jun-16 16:35pm    
You cannot "disable system events" like you're describing.

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