pos/is4c-nf/scale-drivers/drivers/NewMagellan/USB-Win32.cs
Method GetUSBHandle
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override Stream GetUSBHandle(string filename, int report_size){
if (filename.IndexOf("&") > 0){
String[] parts = filename.Split(new Char[]{'&'});
if (parts.Length != 2){
System.Console.WriteLine(filename);
Method CreateFile
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
[DllImport("kernel32.dll", SetLastError = true)] protected static extern IntPtr CreateFile([MarshalAs(UnmanagedType.LPStr)] string strName, uint nAccess, uint nShareMode, IntPtr lpSecurity, uint nCreationFlags, uint nAttributes, IntPtr lpTemplate);
Method SetupDiGetDeviceInterfaceDetail
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
[DllImport("setupapi.dll", SetLastError = true)] protected static extern bool SetupDiGetDeviceInterfaceDetail(IntPtr lpDeviceInfoSet, ref DeviceInterfaceData oInterfaceData, ref DeviceInterfaceDetailData oDetailData, uint nDeviceInterfaceDetailDataSize, ref uint nRequiredSize, IntPtr lpDeviceInfoData);
Method SetupDiGetDeviceInterfaceDetail
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
[DllImport("setupapi.dll", SetLastError = true)] protected static extern bool SetupDiGetDeviceInterfaceDetail(IntPtr lpDeviceInfoSet, ref DeviceInterfaceData oInterfaceData, IntPtr lpDeviceInterfaceDetailData, uint nDeviceInterfaceDetailDataSize, ref uint nRequiredSize, IntPtr lpDeviceInfoData);
Method SetupDiEnumDeviceInterfaces
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
[DllImport("setupapi.dll", SetLastError = true)] protected static extern bool SetupDiEnumDeviceInterfaces(IntPtr lpDeviceInfoSet, uint nDeviceInfoData, ref Guid gClass, uint nIndex, ref DeviceInterfaceData oInterfaceData);