Question about CSP in Vista and XP

izyani

New Member
Advapi32.dll
As what I understand by reading the Microsoft Cryptographic Service Provider Development Kit manual, in order for me to perform signing I need to replace the advapi32.dll in c:\windows\system32 folder.
For Windows 2000, from the manual – I need to rename the current advapi32 to advapi32.bak. Then I expand it the appreciate advapi32.dll for the test platform and replace it in the c:\windows\system32 directory.
For Windows XP and Vista, can I do it the same way/do I also need to replace the advapi32.dll for the purpose to test the signing process?
I try to do it in Vista, but I get a warning message seems that not allowed to modify any files in c:\windows\system32 directory.

UAC in Vista
After I get stuck to replace the advapi32.dll in Vista, one of my colleague told me that it is not necessary to replace the advapi32.dll coz it is only for the purpose to test the signing. So I start to register the dll in Vista. But I got the error msg -the module “mimoscsp.dll” was loaded but the call to DllregisterServer failed with error code 0x800900006-.

I check from the net and I found out that it might be regarding the UAC in Vista. So, I’ve tried to look from net and find out that I need to create a manifest file.

So, my manifest file is like this:

[FONT=&quot]<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedPrivileges>
<ms_asmv2:requestedExecutionLevel level="asInvoker" />
</ms_asmv2:requestedExecutionLevel>
</ms_asmv2:requestedPrivileges>
</ms_asmv2:security>
</ms_asmv2:trustInfo>
</assembly>[/FONT]

[FONT=&quot] [/FONT]
But I still get the same error.

I already try to run the cmd prompt in Vista-Run as Administrator – but still get the same error.

I try to run VS Studio 2005-Run as Administrator, compile the file, replace to file in c:\windows\system32 – register the dll-> but still get error.

And now I’m stuck. I’m not sure what direction should I take now. Hope you can give opinion about this. Thanks.
 

My Computer

Back
Top