本文介绍了错误代码3找不到设备路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CreateFile(

\\Device \\ {CA406714-40A3-490E-8B07-DD467073DA92},

0,//设备查询访问

FILE_SHARE_READ,

NULL,

OPEN_EXISTING,

0,

INVALID_HANDLE_VALUE

);



嗨以上createfileAPI失败,未找到设备路径(错误3)。

但我从位置获取设备名称

HKEY_LOCAL_MACHINE \SYSTEM\ControlSet001 \Control\Class \ {4d36e972-e325-11ce-bfc1-08002be10318} \0013 \联系



其中导出关键字段是\Device \ {CA406714-40A3-490E-8B07-DD467073DA92}

为NT我给出的命名约定。\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ n>解决方案


CreateFile(
"\\Device\\{CA406714-40A3-490E-8B07-DD467073DA92}",
0, // Device Query Access
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
INVALID_HANDLE_VALUE
);

hi all above "createfile" API is failing with device path not found(error 3).
but I have take device name from location
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}\0013\Linkage

where export key field is"\Device\{CA406714-40A3-490E-8B07-DD467073DA92}"
as NT naming convention I have given.\\Device\\{CA406714-40A3-490E-8B07-DD467073DA92}
please let me know where I am doing wrong

解决方案


这篇关于错误代码3找不到设备路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:34