• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            DDK函數(shù):CM_Locate_DevNode

            MSDN原文地址

            Windows Driver Kit: Device Installation

            CM_Locate_DevNode

            The CM_Locate_DevNode function obtains a device instance handle to the device node that is associated with a specified device instance identifier, on the local machine.

            CM_Locate_DevNode 函數(shù)獲得設(shè)備節(jié)點(diǎn)的設(shè)備實(shí)例句柄,關(guān)聯(lián)本機(jī)指定的設(shè)備實(shí)例標(biāo)識(shí)符。

            CMAPI CONFIGRET WINAPI
              CM_Locate_DevNode(
                OUT PDEVINST  pdnDevInst,
                IN DEVINSTID  pDeviceID,  OPTIONAL
                IN ULONG  ulFlags
                );
            Parameters
            pdnDevInst
            A pointer to a device instance handle that CM_Locate_DevNode retrieves. The retrieved handle is bound to the local machine.
            指向CM_Locate_DevNode 取得的設(shè)備實(shí)例句柄。這個(gè)句柄限制在本機(jī)。
            pDeviceID
            A pointer to a NULL-terminated string representing a device instance identifier. If this value is NULL, or if it points to a zero-length string, the function retrieves a device instance handle to the device at the root of the device tree.
            指向一個(gè)以NULL結(jié)尾的字符串,象征設(shè)備實(shí)例描述符。如果這個(gè)值為NULL,或者指向一個(gè)零長(zhǎng)度的字符串,函數(shù)取得的設(shè)備實(shí)例句柄是設(shè)備樹(shù)的根設(shè)備。
            ulFlags
            A variable of ULONG type that supplies one of the following flag values that apply if the caller supplies a device instance identifier:
            CM_LOCATE_DEVNODE_NORMAL
            The function retrieves the device instance handle for the specified device only if the device is currently configured in the device tree.
            僅僅是currently configured
            CM_LOCATE_DEVNODE_PHANTOM
            The function retrieves a device instance handle for the specified device if the device is currently configured in the device tree or the device is a nonpresent device that is not currently configured in the device tree.
                      currently configured 或者 nonpresent device
            CM_LOCATE_DEVNODE_CANCELREMOVE
            The function retrieves a device instance handle for the specified device if the device is currently configured in the device tree or in the process of being removed from the device tree. If the device is in the process of being removed, the function cancels the removal of the device.
            正在被移除的設(shè)備,如果設(shè)備正在被移除,這個(gè)函數(shù)取消移除動(dòng)作。
            CM_LOCATE_DEVNODE_NOVALIDATION
            Not used.
            Return Value

            If the operation succeeds, CM_Locate_DevNode returns CR_SUCCESS. Otherwise, the function returns one of the CR_Xxx error codes that are defined in cfgmgr32.h.

            Comments

            For information about using device instance handles that are bound to the local machine, see CM_Get_Child.

            Requirements

            Versions: The CM_Locate_DevNode function is available in Microsoft Windows 2000 and later versions of Windows.

            Headers: Declared in cfgmgr32.h. Include cfgmgr32.h.

            See Also

            CM_Get_Child, CM_Locate_DevNode_Ex

            posted on 2008-03-19 15:57 FongLuo 閱讀(3705) 評(píng)論(5)  編輯 收藏 引用

            評(píng)論

            # re: DDK函數(shù):CM_Locate_DevNode 2009-08-11 14:35 小張

            您好,請(qǐng)問(wèn)一下,我在MFC程序中,使用這個(gè)函數(shù)時(shí),總是有鏈接錯(cuò)誤,請(qǐng)問(wèn)是否需要包含什么額外的系統(tǒng).lib文件啊?麻煩您談一談這個(gè)函數(shù)的使用方法  回復(fù)  更多評(píng)論   

            # re: DDK函數(shù):CM_Locate_DevNode 2009-08-11 15:03 小張

            我的郵箱是maomizp2000@yahoo.com.cn,您也可以把意見(jiàn)發(fā)到我的郵箱里面  回復(fù)  更多評(píng)論   

            # re: DDK函數(shù):CM_Locate_DevNode[未登錄](méi) 2009-08-31 22:05 FongLuo

            這是DDK中的函數(shù),在setupapi.dll中被實(shí)現(xiàn),但在setupapi.lib中沒(méi)有被引出。你需要找到winDDK中的cfgmgr32.h和cfgmgr32.lib。vc6編譯時(shí)需要更改一下cfgmgr32.h中的幾個(gè)定義。  回復(fù)  更多評(píng)論   

            # re: DDK函數(shù):CM_Locate_DevNode[未登錄](méi) 2009-08-31 22:16 FongLuo

            還要一個(gè)cfg.h  回復(fù)  更多評(píng)論   

            # re: DDK函數(shù):CM_Locate_DevNode[未登錄](méi) 2009-08-31 22:18 FongLuo

            小張:給你發(fā)送郵件是提示失敗了。你只有自己來(lái)這里看了。  回復(fù)  更多評(píng)論   


            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            <2008年3月>
            2425262728291
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345

            導(dǎo)航

            常用鏈接

            留言簿

            隨筆分類(11)

            隨筆檔案(79)

            文章檔案(1)

            收藏夾(38)

            學(xué)習(xí)網(wǎng)站

            一般網(wǎng)站

            最新隨筆

            搜索

            積分與排名

            最新評(píng)論

            閱讀排行榜

            漂亮人妻被中出中文字幕久久| 无码人妻久久一区二区三区 | 国产精品日韩欧美久久综合| 中文字幕乱码人妻无码久久| 久久久久免费精品国产| 国产精品一区二区久久精品涩爱 | 精品人妻伦九区久久AAA片69| 久久无码专区国产精品发布| 少妇人妻综合久久中文字幕| 久久人与动人物a级毛片| 日本五月天婷久久网站| 久久天天躁狠狠躁夜夜不卡| 日韩AV无码久久一区二区| 久久久一本精品99久久精品66| 无码精品久久久久久人妻中字| 日韩人妻无码精品久久免费一| 国产精品久久久久AV福利动漫| 久久99国产精品99久久| 青青草国产97免久久费观看| 亚洲精品久久久www| 蜜臀av性久久久久蜜臀aⅴ| 久久ZYZ资源站无码中文动漫| 久久99国产精品久久| 久久国产成人| 久久久久久夜精品精品免费啦| 91精品免费久久久久久久久| 午夜肉伦伦影院久久精品免费看国产一区二区三区 | 欧美亚洲色综久久精品国产| 亚洲成色WWW久久网站| 久久精品无码专区免费东京热| 9久久9久久精品| 久久99国产精品久久99果冻传媒| 91精品国产91久久久久福利 | 中文字幕无码久久人妻| 亚洲女久久久噜噜噜熟女| 国产精品9999久久久久| 青青国产成人久久91网| 午夜精品久久久久久久无码| 色狠狠久久AV五月综合| 国产精品99久久精品爆乳| 欧美黑人激情性久久|