Exemplo n.º 1
0
 /// <summary>
 /// Initializes new instance of ObjectHandle class with ObjectId set to CK_INVALID_HANDLE
 /// </summary>
 public ObjectHandle()
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
         {
             _objectHandle40 = new HighLevelAPI40.ObjectHandle();
         }
         else
         {
             _objectHandle41 = new HighLevelAPI41.ObjectHandle();
         }
     }
     else
     {
         if (Platform.StructPackingSize == 0)
         {
             _objectHandle80 = new HighLevelAPI80.ObjectHandle();
         }
         else
         {
             _objectHandle81 = new HighLevelAPI81.ObjectHandle();
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Converts platform specific ObjectHandle to platfrom neutral ObjectHandle
        /// </summary>
        /// <param name="objectHandle">Platform specific ObjectHandle</param>
        internal ObjectHandle(HighLevelAPI80.ObjectHandle objectHandle)
        {
            if (objectHandle == null)
            {
                throw new ArgumentNullException("objectHandle");
            }

            _objectHandle80 = objectHandle;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Converts platform specific ObjectHandle to platfrom neutral ObjectHandle
        /// </summary>
        /// <param name="objectHandle">Platform specific ObjectHandle</param>
        internal ObjectHandle(HighLevelAPI80.ObjectHandle objectHandle)
        {
            if (objectHandle == null)
                throw new ArgumentNullException("objectHandle");

            _objectHandle80 = objectHandle;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes new instance of ObjectHandle class with ObjectId set to CK_INVALID_HANDLE
 /// </summary>
 public ObjectHandle()
 {
     if (Platform.UnmanagedLongSize == 4)
     {
         if (Platform.StructPackingSize == 0)
             _objectHandle40 = new HighLevelAPI40.ObjectHandle();
         else
             _objectHandle41 = new HighLevelAPI41.ObjectHandle();
     }
     else
     {
         if (Platform.StructPackingSize == 0)
             _objectHandle80 = new HighLevelAPI80.ObjectHandle();
         else
             _objectHandle81 = new HighLevelAPI81.ObjectHandle();
     }
 }