How can I steal/intercept volume control from windows? [migrated]

Whenever windows volume is adjusted I want to instead run my own commands, is this possible?

I’m using a CEC adapter and software and I want windows volume to instead send CEC volume commands to my AVR.

I know I can fiddle with key bindings, auto hotkey, etc to have my own hotkeys send CEC commands, but I want to know if there are pre made apps that can intercept volume control at the kernel level.

OR maybe .net supports this and I could write my own ps script? I prob wouldn’t want to have to have to mess with win32api directly.