Thanks everyone and sorry for late reply.
I just created a small plugin in C++ and called the same in my C# application.
Problem solved.