Connectivity Software User's Guide and Reference
CryptGenKey Method



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

Parameters

hProv
Algid
dwFlags
phKey
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