• <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é)點的設(shè)備實例句柄,關(guān)聯(lián)本機(jī)指定的設(shè)備實例標(biāo)識符。

            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è)備實例句柄。這個句柄限制在本機(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.
            指向一個以NULL結(jié)尾的字符串,象征設(shè)備實例描述符。如果這個值為NULL,或者指向一個零長度的字符串,函數(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è)備正在被移除,這個函數(shù)取消移除動作。
            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) 評論(5)  編輯 收藏 引用

            評論

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

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

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

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

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

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

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

            還要一個cfg.h  回復(fù)  更多評論   

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

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


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


            <2008年12月>
            30123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910

            導(dǎo)航

            常用鏈接

            留言簿

            隨筆分類(11)

            隨筆檔案(79)

            文章檔案(1)

            收藏夾(38)

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

            一般網(wǎng)站

            最新隨筆

            搜索

            積分與排名

            最新評論

            閱讀排行榜

            思思久久99热只有频精品66| 国产精品成人久久久| 亚洲AV无码久久精品色欲| 久久狠狠高潮亚洲精品| 久久久91人妻无码精品蜜桃HD | 久久精品无码专区免费青青| 东京热TOKYO综合久久精品| 亚洲国产天堂久久综合| 精品久久久久久国产潘金莲| 精品视频久久久久| 亚洲国产精品无码久久98| 亚洲国产天堂久久综合网站| 亚洲狠狠婷婷综合久久蜜芽 | 狠狠综合久久AV一区二区三区| 精品无码久久久久久久久久| 欧美黑人激情性久久| 精品久久综合1区2区3区激情| 久久夜色精品国产噜噜麻豆| 狠狠综合久久综合88亚洲| 久久精品无码一区二区日韩AV| 狠狠色丁香久久婷婷综| 久久精品男人影院| 亚洲∧v久久久无码精品| 久久久久亚洲AV综合波多野结衣| 国产精品狼人久久久久影院 | 久久成人国产精品免费软件| 久久综合久久美利坚合众国| 久久亚洲中文字幕精品一区| 免费观看久久精彩视频| 狠狠人妻久久久久久综合蜜桃| 丰满少妇人妻久久久久久| 久久人爽人人爽人人片AV| 区久久AAA片69亚洲| 久久经典免费视频| 久久久精品国产sm调教网站| 伊人久久大香线蕉综合Av| 亚洲精品综合久久| 久久精品国产99久久久古代| 久久午夜福利无码1000合集| 一本一本久久A久久综合精品| 欧美牲交A欧牲交aⅴ久久|