Win32_ClassicCOMClassSetting class
The Win32_ClassicCOMClassSetting WMI class represents the settings of a Component Object Model (COM) component.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.
Syntax
class Win32_ClassicCOMClassSetting : Win32_COMSetting
{
string AppID;
string AutoConvertToClsid;
string AutoTreatAsClsid;
string Caption;
string ComponentId;
boolean Control;
string DefaultIcon;
string Description;
string InprocHandler;
string InprocHandler32;
string InprocServer;
string InprocServer32;
boolean Insertable;
boolean JavaClass;
string LocalServer;
string LocalServer32;
string LongDisplayName;
string ProgId;
string SettingID;
string ShortDisplayName;
string ThreadingModel;
string ToolBoxBitmap32;
string TreatAsClsid;
string TypeLibraryId;
string Version;
string VersionIndependentProgId;
};
Members
The Win32_ClassicCOMClassSetting class has these types of members:
Properties
The Win32_ClassicCOMClassSetting class has these properties.
- AppID
-
- Data type: string
- Access type: Read-only
Globally unique identifier (GUID) for the COM application using this COM component.
- AutoConvertToClsid
-
- Data type: string
- Access type: Read-only
GUID of the COM class to which this COM component will automatically be converted.
- AutoTreatAsClsid
-
- Data type: string
- Access type: Read-only
GUID for the COM component that will automatically emulate instances of this class.
- Caption
-
- Data type: string
- Access type: Read-only
- Qualifiers: MaxLen (64)
Short textual description of the CIM_Setting object. This property is inherited from CIM_Setting.
- ComponentId
-
- Data type: string
- Access type: Read-only
- Qualifiers: Key
GUID of this COM component.
- Control
-
- Data type: boolean
- Access type: Read-only
COM component is an OLE control.
- DefaultIcon
-
- Data type: string
- Access type: Read-only
Path to the executable file and resource identifier of the default icon used by the class.
- Description
-
- Data type: string
- Access type: Read-only
Description of the CIM_Setting object. This property is inherited from CIM_Setting.
- InprocHandler
-
- Data type: string
- Access type: Read-only
Full path including filename or only filename to a 16-bit custom handler for the COM component. The provider does not always return the full path.
- InprocHandler32
-
- Data type: string
- Access type: Read-only
Full path including filename or only filename to a 32-bit custom handler for the COM component. The provider does not always return the full path.
- InprocServer
-
- Data type: string
- Access type: Read-only
Full path including filename or only filename to a 16-bit in-process server DLL for this COM component. The provider does not always return the full path.
- InprocServer32
-
- Data type: string
- Access type: Read-only
Full path including filename or only filename to a 32-bit in-process server DLL for this COM component. The provider does not always return the full path.
- Insertable
-
- Data type: boolean
- Access type: Read-only
COM component can be inserted into OLE container applications.
- JavaClass
-
- Data type: boolean
- Access type: Read-only
COM component is a Java component.
- LocalServer
-
- Data type: string
- Access type: Read-only
Full path including filename or only filename to a 16-bit local server application. The provider does not always return the full path.
- LocalServer32
-
- Data type: string
- Access type: Read-only
Full path including filename or only filename to a 32-bit local server application. The provider does not always return the full path.
- LongDisplayName
-
- Data type: string
- Access type: Read-only
Full name of the COM application. It is used in areas such as the Results field of the OLE Paste Special dialog box.
- ProgId
-
- Data type: string
- Access type: Read-only
Programmatic identifier associated with the COM component. The format of a ProgID is <Vendor.<Component.<Version. This identifier is not guaranteed to be unique.
- SettingID
-
- Data type: string
- Access type: Read-only
- Qualifiers: MaxLen (256)
Identifier by which the CIM_Setting object is known. This property is inherited from CIM_Setting.
- ShortDisplayName
-
- Data type: string
- Access type: Read-only
Short name of the COM application (used in menus and pop-ups).
- ThreadingModel
-
- Data type: string
- Access type: Read-only
Threading model used by in-process COM classes. If this property is NULL, then no threading model is used. The component is created on the main thread of the client and calls from other threads are marshaled to this thread.
The Apartment model specifies that components may be entered by one and only one thread. Common data held by these types of object servers must be protected against thread collisions because the object server supports multiple components. Each component can be entered simultaneously by different threads.
The Free model specifies that components place no restrictions on which threads or how many threads can enter the object. The object cannot contain thread-specific data and must protect its data from simultaneous access by multiple threads. Free-threaded components however, cannot be accessed by apartment threads directly, and calls to them are marshaled across from the client apartment.
When Both is specified, components can be used in either apartment-threaded or free-threaded modes. These components can be entered by multiple threads, protect their data from thread collisions, and do not contain thread-specific data.
The values are:
- "Apartment"
- "Free"
- "Both"
- ToolBoxBitmap32
-
- Data type: string
- Access type: Read-only
Module name and resource identifier for a small (16x16) bitmap used for the face of a toolbar or toolbox button. Used when the COM component is an OLE or ActiveX control.
- TreatAsClsid
-
- Data type: string
- Access type: Read-only
GUID of a COM component that can emulate instances of this component.
- TypeLibraryId
-
- Data type: string
- Access type: Read-only
GUID for the type library for this COM component.
- Version
-
- Data type: string
- Access type: Read-only
Version number of this COM class.
- VersionIndependentProgId
-
- Data type: string
- Access type: Read-only
Program identifier that is consistent for all versions of the same program.
Remarks
The Win32_ClassicCOMClassSetting class is derived from Win32_COMSetting.
Examples
For more information and script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For more information and C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012
