Connectivity Software User's Guide and Reference
CryptGetUserKey Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Licensing Namespace > Crypto.NativeMethods Class : CryptGetUserKey Method
Syntax
'Declaration
 
Public Shared Function CryptGetUserKey( _
   ByVal hProv As IntPtr, _
   ByVal dwKeySpec As Integer, _
   ByRef phUserKey As IntPtr _
) As Boolean
'Usage
 
Dim hProv As IntPtr
Dim dwKeySpec As Integer
Dim phUserKey As IntPtr
Dim value As Boolean
 
value = Crypto.NativeMethods.CryptGetUserKey(hProv, dwKeySpec, phUserKey)
public static bool CryptGetUserKey( 
   IntPtr hProv,
   int dwKeySpec,
   ref IntPtr phUserKey
)
public:
static bool CryptGetUserKey( 
   IntPtr hProv,
   int dwKeySpec,
   IntPtr% phUserKey
) 

Parameters

hProv
dwKeySpec
phUserKey
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also