应天论坛

 找回密码
 参与我们

QQ登录

只需一步,快速开始

搜索
查看: 1316|回复: 0

[Windows] What do the various regsvr32 exit codes mean?

[复制链接]

276

主题

303

帖子

3197

积分

管理员

湘南小侠客

Rank: 9Rank: 9Rank: 9

积分
3197

优质服务勋章论坛元老

QQ
发表于 2019-5-3 21:38:09 | 显示全部楼层 |阅读模式
The exit codes for the regsvr32 program are currently as follows:
Exit codeMeaning
0Success
1Error parsing command line
2OleInitialize failed
3LoadLibrary failed
4GetProcAddress failed
5Registration function failed
This information is included for diagnostic and troubleshooting purposes. I don’t think the values are contractual.
The regsvr32 program basically does five things, and the exit codes correspond to each of those steps.
  • Parse the command line to see what it’s being asked to do.
  • Initialize OLE.
  • Load the library.
  • Find the function to be called. The command line options specify which function to look for. Could be Dll­Register­Server, Dll­Unregister­Server, or even Dll­Install.
  • Call it.
Steps 4 and 5 may be repeated if the command line options indicate that multiple functions should be called.
If something goes wrong, the regsvr32 program reports the error details to the user, and the exit code summarizes which step it got stuck at. Future versions of regsvr32 may add additional steps, or change the order of the steps, which would trigger renumbering. The exit code is for diagnostic and troubleshooting purposes, so you can try to figure out why something went wrong.
We’ll put this information to use next time.

每次见你穿短裤打领带,还穿个拖鞋,下次再这样穿不要从我家门口过了!
http://gsh.yzqz.cn/CassettePlayer/index.html

天之道,损有余而补不足.人之道则不然,损不足以奉有余.孰能有余以奉天下,唯有道者.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 参与我们

本版积分规则

QQ|Archiver|手机版|小黑屋|应天社区 ( 湘ICP备17015224号 )

GMT+8, 2024-12-22 13:34 , Processed in 0.062500 second(s), 27 queries .

Powered by Discuz!

© 2001-2017 Comsenz Inc.


免责声明:
本站所发布的第三方软件及资源(包括但不仅限于文字/图片/音频/视频等仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢某程序或某个资源,请支持正版软件及版权方利益,注册或购买,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To: admin@yzqz.cn

快速回复 返回顶部 返回列表