So you mean it is not possible to get notification when another app is performing this action?
But I think there should be a way of knowing. I'm not sure but I think there is no event that can happen on a computer which doesn't have an OS message map, but as I've said I'm not sure but according to what I once saw especially with Windows OS is that its a Message driven OS, which means most of the events are derived by Messages or trigged by message that the OS broadcast to app the registered apps to recieve that type of message.
In C++ I think in order to receive these messages you need to register your app for SYSTEM_EVENTS | USER_EVENTS | SERVICE_EVENTS | EXECUTE_EVENTS