Document Code change to trigger rename Document Name

The filename already changes when the document name is changed but I need the document name to change when the document name is changed.

I assume I'll need to create a custom module with a post trigger on the Doc code written in C++ and register the module. Then add the dll to everyone's PWE.

Looking for guidance here as I normally write external programs in VB.NET.