Beispiel #1
0
 private static extern int ANTFSHost_GetFoundDeviceParameters(
     IntPtr HostPtr,
     ref ANTFS_DeviceParameters pstDeviceParameters,
     [MarshalAs(UnmanagedType.LPArray)] byte[] pucFriendlyName,
     ref byte pucBufferSize);
Beispiel #2
0
        /// <overloads>
        /// Adds a set of parameters for which to search to the internal search device list
        /// </overloads>
        /// <summary>
        /// Adds a set of parameters for which to search to the internal search device list, explicitly specifying 
        /// all parameters and search mask. 
        /// </summary>
        /// <param name="stSearchMask">Device parameter search mask. Set a member to zero (0) to wildcard search for it.
        /// Otherwise, set the bits that you want to be matched to 1 in each member.
        /// Note that the default search masks or wildcards should normally be applied to the ucStatusByte1 and ucStatusByte2 
        /// members of the search mask. Setting bits outside the masks, specially reserved bits, may lead to undesired
        /// behavior.</param>
        /// <param name="stDeviceParameters">Device Parameters to include in a search.  Set the member to the desired search value.
        /// A member in this structure is ignored if the associated member in the Search Mask is set to zero (0) for wildcard.</param>
        /// <returns>A handle to the search device entry.  If the return value is zero (0), the function failed adding the device entry.
        /// This means that the device list is already full</returns>
        public ushort AddSearchDevice(ref ANTFS_DeviceParameters stSearchMask, ref ANTFS_DeviceParameters stDeviceParameters)
        {
            if (!bInitialized)
                throw new ObjectDisposedException("ANTFSHost object has been disposed");

            return(ANTFSHost_AddSearchDevice(unmanagedHostPtr, ref stSearchMask, ref stDeviceParameters));    
        }
Beispiel #3
0
 private static extern ushort ANTFSHost_AddSearchDevice(
     IntPtr HostPtr, 
     ref ANTFS_DeviceParameters pstDeviceSearchMask, 
     ref ANTFS_DeviceParameters pstDeviceParameters);