亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? deviceimpl.java

?? JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * DeviceImpl.java * * Created on 15. Juli 2003, 16:35 *//* * Java USB Library * Copyright (C) 2000 by David Brownell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package usb.windows;import java.io.IOException;import java.util.Hashtable;import java.util.Locale;import usb.core.*;import usb.util.LangCode;/** * Provides access to all USB devices on a bus in limited fashion.<br> * The device descriptor and configuration descriptor provides more information * to the devices which are attached to the bus. <br> * The devices itself are instances of the subclass NonJUSB when not using the  * jUSB driver and of the subclass JUSB when using the jUSB driver. * * @author  Mike Stahl * @version $id: DeviceImpl.java, v1.0 Created on 15. Juli 2003, 16:37  */public class DeviceImpl extends Device {        /**      * Corresponds to a hub port and indicates that no device is connected to that     * port.     */        public static final int NO_DEVICE_CONNECTED = 1;    /** Corresponds to a hub port and indicates that an external hub is connected to that     * port.     */        public static final int EXTERNAL_HUB = 2;    /** Corresponds to a hub port and indicates that a device is connected to that     * port.     */        public static final int USB_DEVICE = 3;    /**     * The number of ports on this hub, or zero if it's a device     */    private int numPorts;    /**     * The hub port number to which this device or hub is connected     */    private int hubPortNumber;    /**     * The bus to which this device or hub is connected     */    private final USB usb;        /**     * The devices that were on the USB before the scan     */    private static DeviceImpl oldDevices [] = new DeviceImpl [127];    /**     * usbDevicePath corresponds to the Windows DevicePath for this device     */    private String usbDevicePath;    /**     * This id is unique to every usb device. It is used to find out if something     * changed on the bus.     */    private String uniqueDevID;    /**     * The Windows driverKeyName for that device     */    private String driverKeyName;    /**     * Friendly Name of the Driverkey     */    private String friendlyDeviceName;        private DeviceImpl hub;    private DeviceImpl children[];    /** The device descriptor */        public  DeviceDescriptor	descriptor;     /** The configuration descriptor */        public Configuration configuration;        /** used to create an instance of the root hub     * @param bus The bus this device belongs to     * @param devicePath The Windows OS specific device path for that device     * @param address The device address (should be always 0, because this constructor is only called     * to create the root hub)     * @param devices Contains the current structure of the bus. Is used to compare if device have     * been removed or attached during the last scan.     * @throws IOException An exception is raised when we could not get a handle to the root hub     */    DeviceImpl(USB bus, String devicePath, int address,DeviceImpl devices[])    throws IOException {        super (null, bus, address);                this.usb = bus;        this.usbDevicePath = devicePath;        this.hubPortNumber = 0;        this.driverKeyName = null;        this.friendlyDeviceName = "Root Hub";        this.oldDevices = devices;        this.hub = null;        if(Windows.debugDeviceImpl){          System.out.println("DeviceImpl.Constructor() ROOT >>> Bus[ " +usb.getBusNum() + "]  --- Device[" + this + "]  --- Adr["+ address+ "] " + address + "  --- Port[" +hubPortNumber + "]" );          }                        //----------- R O O T   H U B ------------------------        // check if it is the root hub        if(devicePath != null && address == 0){          //we are accessing the root hub          //get the root hub handle and how many          //ports it contains                   int rootHubHandle = this.openHandle(devicePath);         if(rootHubHandle == USBException.ERROR_INVALID_HANDLE)             throw new USBException("INVALID_HANDLE_VALUE for roothub ",rootHubHandle);         this.numPorts = getNumPorts(rootHubHandle);         if(Windows.debugDeviceImpl) System.out.println("DeviceImpl.Constructor() ROOT >>> Root Hub (rootHubHandle:" + rootHubHandle + "numPorts:" + this.numPorts+")");         this.enumerateHubPorts(usb, rootHubHandle,this,this.numPorts);                  // close the root hub handle         this.closeHandle(rootHubHandle);                 }        else throw new USBException("This constructor is used only for a root hub",-1);                           }       /** used to create an instance of either an external hub or an usb device     * @param bus The bus object this device belongs to     * @param hub The device(hub) this device is a child of     * @param devicePath The Windows OS specific device path for that device     * @param address The device address     * @param driverKeyName The driver key name of that device<br>This look similiar to such a string     * {<device interface class>}     * @param friendlyDevName The friendly device name of that device     * @param uniqueID The unique ID     * @param portIndex The port number this device is connected to     * @throws IOException An exception is raised when we could not get a handle a hub or a JUSB device     */     DeviceImpl(USB bus,DeviceImpl hub, String devicePath, int address,String driverKeyName,String friendlyDevName, String uniqueID,int portIndex)     throws IOException {        super (null, bus, address);        this.usb = bus;        this.usbDevicePath = devicePath;        this.driverKeyName = driverKeyName;        this.friendlyDeviceName = friendlyDevName;        this.hubPortNumber = portIndex;        this.uniqueDevID = uniqueID;        if(Windows.debugDeviceImpl){          System.out.println("DeviceImpl.Constructor() DEV or HUB >>> Bus[ " +usb.getBusNum() + "]  --- Device[" + this.uniqueDevID + "]  --- Adr["+ address + "] " + address + "  --- Port[" +portIndex + "] ");          }                                this.hub = hub;                  //---------- E X T E R N A L    H U B -----------------         //         if(devicePath != null && address > 0){             int hubHandle = this.openHandle(devicePath);            if(hubHandle == USBException.ERROR_INVALID_HANDLE)                throw new USBException("INVALID_HANDLE_VALUE for external hub ",hubHandle);                        // to do:            // at this stage it would be useful to build the hub descriptor            // and all information that wanted to be know over an external hub            // ...                                   this.numPorts = getNumPorts(hubHandle);            if(Windows.debugDeviceImpl) System.out.println("DeviceImpl.Constructor() DEV or HUB >>> External Hub (hubHandle:" + hubHandle + "numPorts:" + this.numPorts+")");            this.enumerateHubPorts(usb, hubHandle,this,this.numPorts);                     // close the root hub handle            this.closeHandle(hubHandle);                                   }else                        //---------- U S B    D E V I C E -----------------         //         if(devicePath == null){                         // to do:            // at this stage it would be useful to build the hub descriptor            // and all information that wanted to be know over an external hub            // ...                                                            // to do:            // so far we have nothing to do anymore            // special thing gere is now to get access to a device            // especially read and writing data, get its decriptor and             // configuration.            // This will be part of the jusb driver                      }        else throw new USBException("This constructor is only used either for a external hub or a device",-1);      }     /** Native function that invokes the CreateFile WinAPI function with the given     * device path     * @param devicePath A Windows specific device path for that device     * @return A Windows handle for that device<br>     * if failed it returns USBException.ERROR_INVALID_HANDLE     */          public native int openHandle(String devicePath);    /** Native function that invokes the CloseFile WinAPI function with the given     * handle     * @param devHandle A valid device handle. This value must correspond to a former call of openHandle     * @return 1: when success and <br>-1: when failed to close the device     */        public native int closeHandle(int devHandle);        private native String getFriendlyDeviceName(String driverKeyName);    /**     *     * Returns EXTERNAL_HUB or DEVICE, or NO_DEVICE_CONNECTED     */    private native int  getAttachedDeviceType(int hubHandle,int portIndex);        /**     * Returns the number of ports that are supported by this hub     */    private native int  getNumPorts(int hubHandle);    /**     * Gives the driverkeyname of the device which is attached to the hub     * This value corresponds to the registry entry DeviceDesc which can be found     * under \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_xxxx&Pid_xxxx\..     */    private native String getDriverKeyNameOfDeviceOnPort(int hubHandle,int portIndex);    /**     * Returns the driver key name of that device     */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97成人超碰视| 久久色视频免费观看| 欧美日韩国产不卡| 久久精品国产秦先生| 日韩精品一区二区三区swag| 国产一区欧美二区| 一区二区三区欧美在线观看| 久久女同性恋中文字幕| 宅男噜噜噜66一区二区66| 色网站国产精品| av在线不卡观看免费观看| 国产一本一道久久香蕉| 日本不卡在线视频| 亚洲美女免费视频| 中文字幕成人网| 国产精品综合二区| 国产福利电影一区二区三区| 欧美激情在线观看视频免费| 精品视频123区在线观看| 波多野结衣视频一区| 欧美视频精品在线观看| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲精品国产精品乱码不99| 国产色婷婷亚洲99精品小说| 欧美大片一区二区| 日韩欧美国产综合一区| 久久综合九色综合欧美98| 精品国产亚洲一区二区三区在线观看| 欧美电影免费观看完整版| 日韩一区二区三区免费观看| 欧美一区二区久久| 国产亚洲欧洲997久久综合| 欧美日韩大陆在线| 欧美一区2区视频在线观看| 欧美视频一区二区三区四区| 一区二区三区小说| 久久99国产精品尤物| 波多野洁衣一区| 欧美一区二区三区视频免费| 欧美成人精品二区三区99精品| 国产日韩欧美在线一区| 亚洲综合激情小说| 美腿丝袜亚洲三区| 欧美一二三区精品| 日韩av一区二区三区| 开心九九激情九九欧美日韩精美视频电影| 婷婷夜色潮精品综合在线| 久久国产精品第一页| 成人sese在线| 欧美一区二区在线免费播放| 国产夜色精品一区二区av| 亚洲国产精品传媒在线观看| 亚洲午夜激情av| 久久久国产精品麻豆| 亚洲免费资源在线播放| 国产精品影视天天线| 欧美三级视频在线播放| 久久嫩草精品久久久久| 调教+趴+乳夹+国产+精品| 色综合天天综合色综合av| 精品电影一区二区三区| 麻豆91小视频| 欧美色老头old∨ideo| 国产欧美日韩不卡| 日韩精品在线网站| 亚洲成年人影院| 欧美久久久久久久久久| 一区二区免费在线播放| 欧美一区二区高清| 欧美日韩国产另类不卡| 亚洲精品五月天| 91最新地址在线播放| 亚洲乱码国产乱码精品精小说| 色婷婷一区二区三区四区| 欧美一级免费观看| 婷婷综合久久一区二区三区| 国产精品久久久久一区| 成人精品一区二区三区四区| 国产精品久久久久三级| 99精品视频中文字幕| 亚洲乱码中文字幕| 9191久久久久久久久久久| 午夜精品视频一区| 精品日产卡一卡二卡麻豆| 乱一区二区av| 国产精品久久久久一区二区三区 | 国产老妇另类xxxxx| 精品第一国产综合精品aⅴ| 亚洲国产视频网站| 色婷婷亚洲精品| 午夜久久久久久电影| 26uuu欧美日本| 久久久欧美精品sm网站| 亚洲成a人v欧美综合天堂下载| 国产呦萝稀缺另类资源| 美国十次了思思久久精品导航| 一区二区三区波多野结衣在线观看| 久久精品夜色噜噜亚洲aⅴ| 色综合咪咪久久| 欧美在线视频不卡| 日本国产一区二区| 色婷婷av一区二区| 色婷婷综合久久| 欧美在线色视频| 欧美日本视频在线| 精品国产青草久久久久福利| 欧美区视频在线观看| 91精品国产综合久久久蜜臀图片 | 欧美综合久久久| 欧美日韩午夜在线视频| 91精品欧美一区二区三区综合在| 日韩三级伦理片妻子的秘密按摩| 日韩一级在线观看| 久久久久久亚洲综合| 日本一区二区成人| 亚洲一二三四在线| 精品影视av免费| 91老司机福利 在线| 欧美高清视频一二三区 | 色噜噜夜夜夜综合网| 欧美日韩视频在线观看一区二区三区 | 亚洲综合一区二区三区| 亚洲成人黄色影院| 国产一二三精品| 色呦呦国产精品| 精品日韩99亚洲| 一区二区欧美国产| 国产在线视频精品一区| 在线观看一区日韩| 久久久国产精品午夜一区ai换脸| 一区二区三区中文免费| 日本午夜一区二区| 99麻豆久久久国产精品免费优播| 欧美日韩国产在线观看| 国产精品天美传媒| 国产一区二区成人久久免费影院 | 成人av动漫网站| 欧美一级二级三级乱码| 亚洲乱码国产乱码精品精的特点 | 久久狠狠亚洲综合| 欧洲一区二区三区免费视频| 国产欧美精品一区| 久久99精品视频| 欧美一区二区视频在线观看| 亚洲精品videosex极品| 日本道色综合久久| 精品成人在线观看| 九色porny丨国产精品| 欧美肥妇bbw| 亚洲一卡二卡三卡四卡无卡久久 | 亚洲电影欧美电影有声小说| 色婷婷综合久久| 亚洲人精品午夜| 91在线看国产| 日韩一区欧美一区| 国产.欧美.日韩| 久久免费午夜影院| 国产一区二区按摩在线观看| 日韩一级高清毛片| 国产一区二区三区免费播放| 精品国产成人在线影院| 蜜桃视频在线观看一区| 久久久久九九视频| 久久久影视传媒| 久久99国产精品久久99| 日韩亚洲欧美高清| 久久99蜜桃精品| 中文字幕欧美三区| 日本乱码高清不卡字幕| 亚洲高清中文字幕| 欧美va在线播放| 成人精品国产一区二区4080 | 91精品国产入口在线| 麻豆成人在线观看| 亚洲欧洲色图综合| 国产精品一区二区无线| 中文一区二区在线观看| 欧美在线免费观看视频| 美女视频黄a大片欧美| 国产精品乱码久久久久久| 91久久一区二区| 国产乱码精品一区二区三区忘忧草 | 色香蕉成人二区免费| 日韩va欧美va亚洲va久久| 国产欧美日韩麻豆91| 在线播放中文字幕一区| 国产精品亚洲人在线观看| 自拍偷拍国产亚洲| 精品国产一区二区三区忘忧草| 成人sese在线| 黄色精品一二区| 日韩高清电影一区| 成人欧美一区二区三区小说 | 精品国产一区二区国模嫣然| 在线观看视频一区| 成人app下载| 久久99精品久久只有精品| 日韩影院免费视频| 一区二区欧美视频| 亚洲人妖av一区二区|