Ciao a tutti devo importare una dll In C# purtroppo mi da questo problema:
Unable to load DLL 'C:\WINDOWS\system32\CryptoSrvLib.dll': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
La dll la importo cosi:
[DllImport("C:\\WINDOWS\\system32\\CryptoSrvLib.dll ")]
public static extern int VerifySign(string pPublicKey, long dimPubKey, string pDigest, long dimDigest, string pText, long dimText);
E la uso cosi:
long pass;
pass = VerifySign(key, key.Length, firm, firm.Length, md5, md5.Length);
Qualcuno sa aiutarmi sono giorni che ci sbatto la testa e non ne vengo fuori grazie![]()