• <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函數: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 函數獲得設備節點的設備實例句柄,關聯本機指定的設備實例標識符。

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

            評論

            # re: DDK函數:CM_Locate_DevNode 2009-08-11 14:35 小張

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

            # re: DDK函數:CM_Locate_DevNode 2009-08-11 15:03 小張

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

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

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

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

            還要一個cfg.h  回復  更多評論   

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

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

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

            導航

            常用鏈接

            留言簿

            隨筆分類(11)

            隨筆檔案(79)

            文章檔案(1)

            收藏夾(38)

            學習網站

            一般網站

            最新隨筆

            搜索

            積分與排名

            最新評論

            閱讀排行榜

            久久久久成人精品无码中文字幕| 久久夜色撩人精品国产小说| 久久综合精品国产二区无码| 97r久久精品国产99国产精| 欧洲精品久久久av无码电影 | 久久久久久久女国产乱让韩| 国产美女亚洲精品久久久综合 | 国产精品久久久久久久久软件| 无码人妻久久一区二区三区免费 | 日日狠狠久久偷偷色综合免费| 波多野结衣久久精品| 久久99国产精品99久久| 综合久久精品色| 四虎国产永久免费久久| 国产亚洲精午夜久久久久久| 亚洲日本va中文字幕久久| 久久久久人妻一区精品 | 久久精品国产亚洲av影院| 国产国产成人久久精品| 浪潮AV色综合久久天堂| 久久精品国产亚洲精品2020 | 久久精品国产一区二区| 久久男人Av资源网站无码软件| 亚洲中文字幕伊人久久无码| 国产免费久久精品99久久| 久久A级毛片免费观看| 亚洲国产精品无码久久98| 久久只这里是精品66| 久久婷婷五月综合色99啪ak| 久久93精品国产91久久综合| 久久久综合九色合综国产| 国产情侣久久久久aⅴ免费| 久久精品国产久精国产思思| av色综合久久天堂av色综合在| 亚洲精品tv久久久久| 欧美激情精品久久久久久久| 国产高清国内精品福利99久久| 精品无码人妻久久久久久| 久久久久18| 久久无码高潮喷水| 久久人妻AV中文字幕|