[译]cowhere-在给定ProgID的情况下显示COM组件的位置和详细信息
By robot-v1.0
本文链接 https://www.kyfws.com/applications/cowhere-display-com-component-location-and-details-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1254 个词 阅读量 0[译]cowhere-在给定ProgID的情况下显示COM组件的位置和详细信息
原文地址:https://www.codeproject.com/Articles/1813/cowhere-display-COM-component-location-and-details
原文作者:Glenn Carr
译文由本站 robot-v1.0 翻译
前言
Utility to display location and other details of a COM component, given a CLSID in either ProgID or GUID form.
在给定为ProgID或GUID格式的CLSID的情况下,显示COM组件的位置和其他详细信息的实用程序.
关于共处(About cowhere)
我一直想要一个实用程序来显示给定ProgID的COM组件的路径.我在兜售其他东西,却遇到了(I have been wanting a utility to display the path of a COM component given a ProgID. I was spelunking for something else and I ran across) 休`布朗(Hugh Brown) 的(’s) 哪里(CoWhereIs) 效用.我没有找到源,所以我在cowhere中鞭打了一个类似实用程序的快速版本. " cowhere"将在注册表中显示有关由CLSID表示的COM组件的信息.它还将检查包含组件的文件是否存在.(utility. I didn’t find the source, so I whipped a quick version of a similar utility, cowhere. ‘cowhere’ will display information in the registry about the COM component represented by the CLSID. It will also check to see if the file containing the component is present.)
用法(Usage)
cowhere <clsid> [/create]
哪里(where) <clsid>
可以是ProgID或CLSID GUID,并且(can be either a ProgID or a CLSID GUID and) /create
尝试实例化组件.(attempts to instantiate the component.)
例子:(Examples:)
C:\>cowhere word.application
CLSID: {000209FF-0000-0000-C000-000000000046} "Microsoft Word"
InprocHandler32: "ole32.dll"
InProcServer32:
"E:\Program Files\Common Files\Symantec Shared\Script Blocking\scrblock.dll"
LocalServer32: "E:\PROGRA~1\MICROS~3\Office\WINWORD.EXE
/Automation" ("E:\Program Files\Microsoft Office\Office\WINWORD.EXE ")
[LocalServer32]: (value type not supported)
ProgID: "Word.Application.9"
VersionIndependentProgID: "Word.Application"
C:\>cowhere {00000293-0000-0010-8000-00AA006D2EA4}
CLSID: {00000293-0000-0010-8000-00AA006D2EA4} "ADODB.Connection"
InprocServer32: "E:\Program Files\Common Files\System\ADO\msado10.dll"
[ThreadingModel]: "Apartment"
ProgID: "ADODB.Connection.1"
当前限制(Current limitations)
这应该可以在95/98/ME/W2K/XP下运行,但是仅在NT/W2K/XP下经过了测试.如果其他人可以在95/98/ME下测试它并给我反馈,我将不胜感激.我更新了问题(This should work under 95/98/ME/W2K/XP, but has only been tested under NT/W2K/XP. If anyone else could test it under 95/98/ME and give me feedback, I would appreciate it. I updated the problem with) GetLongPathName
这样它就可以在NT上工作了(so that it works on NT, where this) kernel32
proc不可用.(proc is not available.)
免责声明(Disclaimer)
本软件按"原样"提供,不提供任何明示或暗示的担保,包括但不限于针对特定目的的适销性和适用性的暗示担保.在任何情况下,作者或他的贡献者均不对任何直接,间接,偶发,特殊,特殊或后果性的损害(包括但不限于,替代商品或服务的购买,使用,数据或利润的损失)承担责任.或业务中断),无论基于合同,严格责任或侵权行为(包括疏忽或其他方式),无论是否出于任何责任,都应通过使用本软件的任何方式(即使已事先告知)进行了赔偿.(THIS SOFTWARE IS PROVIDED “AS IS” AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR HIS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.)
使用条款及条件(Terms and conditions of use)
cowhere可免费用于非商业用途.(cowhere is free for non-commercial use.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC6 Windows Win2K ATL Visual-Studio Dev 新闻 翻译