Search code examples
directshowregsvr32

What does regsvr32 filename.ax actually do?


regsvr32 filename.ax

I just see it said something installed successfully,but what's the whole story?


Solution

  • It basically calls into your dll (named filename.ax in this case) and call its "DllRegisterServer" method.

    In the case of directshow filters, it might "register" those filters in the windows registry so that directshow knows about them.

    ex: https://github.com/rdp/directshow-demo-audio-input-open-source/blob/master/acam/virt_audio_all.cpp#L698 calls https://github.com/rdp/directshow-demo-audio-input-open-source/blob/master/acam/virt_audio_all.cpp#L631

    Though there are more simple versions out there.