public List<ObjectHandle> FindObjects(int objectCount)
{
if (this._disposed)
throw new ObjectDisposedException(this.GetType().FullName);
List<ObjectHandle> foundObjects = new List<ObjectHandle>();
uint[] objects = new uint[objectCount];
uint foundObjectsCount = 0;
CKR rv = _p11.C_FindObjects(_sessionId, objects, Convert.ToUInt32(objectCount), ref foundObjectsCount);
if (rv != CKR.CKR_OK)
throw new Pkcs11Exception("C_FindObjects", rv);
for (int i = 0; i < foundObjectsCount; i++)
foundObjects.Add(new ObjectHandle(objects[i]));
return foundObjects;
}