Win32:什么是 HRESULT 0x80070002?

发布于 2025-01-10 06:50:06 字数 107 浏览 3 评论 0原文

我找不到 HRESULT: 0x80070002 的定义

我通常可以通过搜索包含路径找到这些定义,但找不到此代码。有人能解释一下它是什么吗?我认为它是从壳里出来的。

谢谢。

I can't find the definition of HRESULT: 0x80070002

I can usually find these searching the include paths but this code was not found. Does anyone have the explanation of what it is? I think it is coming from the shell.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

还在原地等你 2025-01-17 06:50:06

0x80070002HRESULT 格式的 Win32 错误代码 2 (ERROR_FILE_NOT_FOUND),由 HRESULT_FROM_WIN32() 宏。

如有疑问,您可以使用 HRESULT_FACILITY()HRESULT_CODE() 宏可帮助您了解 HRESULT 代表什么。

在本例中,0x80070002 的设施为 7 (FACILITY_WIN32),这意味着代码 (2) 是 Win32 错误代码 (ERROR_FILE_NOT_FOUND)。

0x80070002 is the Win32 error code 2 (ERROR_FILE_NOT_FOUND) in HRESULT format, as returned by the HRESULT_FROM_WIN32() macro.

When in doubt, you can use the HRESULT_FACILITY() and HRESULT_CODE() macros to help you figure out what an HRESULT stands for.

In this case, 0x80070002 has a facility of 7 (FACILITY_WIN32), meaning the code (2) is a Win32 error code (ERROR_FILE_NOT_FOUND).

三人与歌 2025-01-17 06:50:06

errlook.exe 说“系统找不到指定的文件”。 ,同意它不在任何 SDK(或 VS2019)标头中。

errlook.exe says it is "The system cannot find the file specified." , agreed that it is not in any of the SDK (or VS2019) headers.

空心空情空意 2025-01-17 06:50:06

在 IIS 中删除并添加服务(WebSite) 修复了我的错误。
可能是服务路径自上次添加到 IIS 后不正确。

添加网站时,请确保将正确的物理路径传递给 IIS。

Removing and adding the service(WebSite) back in IIS fixed the error for me.
It might have been the case of the service path being incorrect since it was last added in IIS.

Make sure you're passing the correct physical path to IIS when adding the a web site.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文