2 ms·
The ""deluxe"" (ie far more complicated) version of this might be to use ETW, which is one of those extremely Microsoft APIs that's both powerful but obtuse and
by pjc50 7y ago
The ""deluxe"" (ie far more complicated) version of this might be to use ETW, which is one of those extremely Microsoft APIs that's both powerful but obtuse and can only really be learned from the one blogger providing examples. Which in this case is the amazing series of posts from https://randomascii.wordpress.com/2015/09/24/etw-central/ https://randomascii.wordpress.com/2015/09/24/etw-central/
ETW would also work in those rare situations where SendMessage() doesn't, such as from a device driver, and can more easily be logged.