Installing Font programmatically using C# without rebooting the system

Dec 21 2011 11:53 PM
Hi friends,
Please help me to provide a good solution for this. How to install a font permanently in your system programmatically, using C#. I want the font immediately available in Windows Fonts folder, without system reboot. I googled a lot, but no luck. I found AddFontResource from msdn and tried that, but that also not reflecting properly. Also SendMessage after AddfontResource hangs the system sometimes.
So, currently i opt a COPY function which will copy the font into fonts folder, and later adding the font entry in Regristry executing a batch file.
But, then the font is available from next system logon only.

What i'm missing here.

thanks in advance.