@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm The CryptSetProvParam function customizes the operations of a cryptographic service provider (CSP). !!!!C# Signature: [DllImport("advapi32.dll", SetLastError = true, CharSet = CharSet.Auto)] [return: MarshalAs(UnmanagedType.Bool)] static extern bool CryptSetProvParam( IntPtr hProv, uint dwParam, [In] byte[] pbData, uint dwFlags); !!!!VB Signature: !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: // Setting up a PIN for cryptocontainer string cont_key = "123456789"; ASCIIEncoding enc = new ASCIIEncoding(); //IntPtr phProv; if (!CryptSetProvParam(phProv, PP_SIGNATURE_PIN, enc.GetBytes(cont_key), 0)) { throw new Exception("Ошибка ввода пин-кода.", new Win32Exception(Marshal.GetLastWin32Error())); } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: CryptSetProvParam@msdn on MSDN
Edit advapi32.cryptset...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.