How to import certadm.dll into managed project and use RevokeCertificate method? I tried adding it as reference but I got error asying it's not assembly or COM object.
Any ideas?
UPDATE: I already tried regsvr32 c:\certadm.dll and I get following error: LoadLibrary("c:\certadm.dll") failed - the specified procedure could not be found.
I know this is very old question, but i cannot find any example of using ICertAdmin2::RevokeCertificate in c#. I think it is usefull to write exaple here.
1 Add certadmin lib
2 Use this code
You first need to register the COM server using
regsvr32
before it will be available to be added as a reference in Visual Studio.e.g.,