Attaches this Cryptoki object to the given native cryptoki library. It calls LoadLibrary

Namespace:  Cryptware.NCryptoki
Assembly:  NCryptoki (in NCryptoki.dll)

Syntax

Visual Basic (Declaration)
Public Function Attach ( _
	cryptokilib As String _
) As Integer
C#
public int Attach(
	string cryptokilib
)
Visual C++
public:
virtual int Attach(
	String^ cryptokilib
) sealed
JavaScript
function attach(cryptokilib);

Parameters

cryptokilib
Type: System..::..String
Full path of the native cryptoki library

Return Value

0 if no error occurs, an error code otherwise.
Error code could be a Win32 error took by GetLastError(), such as FILE_NOT_FOUND or a PKCS#11 error CryptokiException

Implements

ICryptoki..::..Attach(String)

Remarks

Attaches this Cryptoki object to the given native cryptoki library

See Also