Creating Customize Macro Button Programmatically

Does anyone know how to create a customize macro button programatically using C#?

Thanks in advance

SolidworksApi macros