欢迎来到天天文库
浏览记录
ID:57648550
大小:29.50 KB
页数:6页
时间:2020-08-30
《注册与反注册dll.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、注册DLL与反注册DLL文件注册表项目[HKEY_CLASSES_ROOTdllfileshellUnregister]"Command"="regsvr32%1/u"[HKEY_CLASSES_ROOTdllfileshellRegister]"Command"="regsvr32%1"当我们需要注册或者反注册dll时,只要在该dll文件上按下鼠标右键即可! 反注册DLL大法UnRegisterDLLsYoucanusetheRegsvr32tool(Regsvr32.exe)toregisterandunregister
2、objectlinkingandembedding(OLE)controlssuchasdynamic-linklibrary(DLL)orActiveXControls(OCX)filesthatareself-registerable.RegSvr32.exehasthefollowingcommand-lineoptions:Regsvr32[/u][/n][/i[:cmdline]]dllname/u-Unregisterserver/i-CallDllInstallpassingitanoptional[cmdline];whe
3、nusedwith/ucallsdlluninstall/n-donotcallDllRegisterServer;thisoptionmustbeusedwith/iWhenyouuseRegsvr32.exe,itattemptstoloadthecomponentandcallitsDLLSelfRegisterfunction.Ifthisattemptissuccessful,Regsvr32.exedisplaysadialogindicatingsuccess.Iftheattemptisunsuccessful,Regsv
4、r32.exereturnsanerrormessage,whichmayincludeaWin32errorcode.Example:TounregisterWinshow'swinshow.dll:ClicktheStartbutton,andselectRunEnterthiscommandline:regsvr32/u[systemroot]winshow.dllForexample,inaWindowsXPmachineinwhichyoursystemrootwasatc:winnt,youwouldenter:regsv
5、r32/uc:winntwinshow.dll你能构使用Regsvr32工具Regsvr32.exe注册和反注册目标链接和深层OLE控制器类似于自动注册的动态链接库(DLL)和ActiveX控件。(OCX)文件。Regsvr32命令行参数:格式:Regsvr32[/u][/n][/i[:cmdline命令行]]dllnamedll文件名/u-Unregisterserver反注册服务/i-CallDllInstallpassingitanoptional[cmdline];whenusedwith/ucallsdlluninstall
6、/i通过此DLL的可选参数,调用DLL安装,反安装使用/u/n-donotcallDllRegisterServer;thisoptionmustbeusedwith/i不调用DLL注册服务,此选项必须和/i一起使用当你使用Regsvr32.exe,它会尝试载入DLL内组件并且调用本身的自注册功能。如果尝试成功,Regsvr32.exe显示一个成功提示框,如果尝试失败,Regsvr32.exe会返回一个错误消息,一般会包含Win32错误代码(特征码)。例如反注册Windows的windows.dll文件1、点击“开始”按钮,选择“运行”2
7、、输入如下的命令行:regsvr32/u[systemroot系统目录]winshow.dll注:卸载DLL时,目录为此DLL文件所在完整的最后打开的目录如:在系统目录是c:winnt的WindowsXP操作系统中,你可以输入如下命令行:regsvr32/uc:winntwinshow.dll注意:一般来说,只有在无法删除某些注册过的DLL文件时,才使用Regsvr32.exe反注册此DLL
此文档下载收益归作者所有