About cowhere
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 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>
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
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
so that it works on NT, where this kernel32
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 is free for non-commercial use.