Import P12/PFX into Windows Certificate Store using KSP or CSP

I need a functionality that imports certificate and associated private key bundled in p12/pfx to Windows Certificate Store preferably using any KSP or CSP. I am searching through web but did not find anything related to this. I also looked at the Google’s certtostore library but it doesn’t help me in importing a certificate and private key to Windows Certificate Store or exporting a certificate and associated private key to p12 or pfx.