Microsoft KB Archive/235638

= INFO: DCOM95 and DCOM98 Version Information =

Article ID: 235638

Article Last Modified on 8/5/2004

-

APPLIES TO

 Microsoft COM+ 2.0 Standard Edition, when used with:  Microsoft Windows 98 Standard Edition

 Microsoft Windows 95 

-



This article was previously published under Q235638



SUMMARY
This article describes how to determine which version of DCOM95 or DCOM98 you are running and includes a table with DCOM95 and DCOM98 version information.



How to Use the Registry to Determine Version
You can check the registry to determine which version of DCOM95 or DCOM98 is installed on a Windows 95-based or Windows 98-based system. If Distributed Component Object Model (DCOM) is installed on the system, the default value of the following registry key:

HKCR\CLSID\{bdc67890-4fc0-11d0-a805-00aa006d2ea4}\InstalledVersion

contains the DCOM version that is installed on the system. In the registry, the version number is stored in the format "a,b,c,d", where a, b, c, and d are numeric values that represent the following attributes:

a - major operating system version

b - minor operating system version

c - minor file version

d - major file version

Version Information Table
The following table lists the version information for DCOM95 and DCOM98:

How to Programmatically Determine the Version
To programmatically determine if DCOM is installed, use the following code: HINSTANCE hDLL = LoadLibrary("OLE32.DLL") if(NULL == hDLL) {       // See Winerror.h for explanation of error code. DWORD error = GetLastError; TRACE1("LoadLibrary Failed with: %i\n", error); return FALSE; }   if (!GetProcAddress(hDLL,"CoCreateInstanceEx")) {       //DCOM is not loaded }   else {       //DCOM is loaded }

