/// <summary> /// Gets general information about loaded PKCS#11 library /// </summary> /// <returns>General information about loaded PKCS#11 library</returns> public LibraryInfo GetInfo() { if (this._disposed) { throw new ObjectDisposedException(this.GetType().FullName); } if (Platform.UnmanagedLongSize == 4) { if (Platform.StructPackingSize == 0) { return(new LibraryInfo(_p11_40.GetInfo())); } else { return(new LibraryInfo(_p11_41.GetInfo())); } } else { if (Platform.StructPackingSize == 0) { return(new LibraryInfo(_p11_80.GetInfo())); } else { return(new LibraryInfo(_p11_81.GetInfo())); } } }