CryptAcquireContext (advapi32)
Last changed: -212.154.152.136

.
Summary
Used to acquire a handle to a particular key container within a particular cryptographic service provider (CSP).

C# Signature:

[DllImport("advapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
   static extern bool CryptAcquireContext(ref IntPtr hProv, string pszContainer,
   string pszProvider, uint dwProvType, uint dwFlags);

VB .NET Signature:

Declare Function CryptAcquireContext Lib "advapi32.dll" (ByRef hProv As IntPtr, _
   pszContainer As String, pszProvider As String, dwProvType As Integer, _
   dwFlags As Integer) As Boolean

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

TODO

Documentation