Win32_BindImageAction class
Applies to: desktop apps only
The Win32_BindImageAction WMI class binds each executable file that must be bound to the DLLs imported by it. The files are bound by computing the virtual address of each function imported from all DLLs. The computed virtual address is then saved in the importing image's Import Address Table (IAT). The action works on each file installed locally.
Note For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_BindImageAction : CIM_Action
{
string ActionID;
string Caption;
string Description;
uint16 Direction;
string File;
string Name;
string Path;
string SoftwareElementID;
uint16 SoftwareElementState;
uint16 TargetOperatingSystem;
string Version;
};
Members
The Win32_BindImageAction class has these types of members:
Methods
The Win32_BindImageAction class has these methods.
| Method | Description |
|---|---|
| Invoke |
Takes a particular action. The details of how the method performs the action are implementation-specific. |
Properties
The Win32_BindImageAction class has these properties.
- ActionID
-
- Data type: string
- Access type: Read-only
Unique identifier assigned to a particular action for a software element.
- Caption
-
- Data type: string
- Access type: Read-only
Short textual description (one line) of the object.
- Description
-
- Data type: string
- Access type: Read-only
Description of the object.
- Direction
-
- Data type: uint16
- Access type: Read-only
Whether an object is part of a sequence of actions to transition the current software element to its next state (Install) or to remove the current software element (Uninstall).
Value Meaning - 1
Install
- 2
Uninstall
- File
-
- Data type: string
- Access type: Read-only
File identifier of a Win32_FileSpecification instance for which this action applies (must be a valid binary file.)
- Name
-
- Data type: string
- Access type: Read-only
Name used to identify the software element.
- Path
-
- Data type: string
- Access type: Read-only
List of semicolon-delimited paths to be searched to find the imported DLLs. The property value is usually a list of Win32_Property instances, with each Win32_Property.Name value enclosed inside square brackets ([ ]).
- SoftwareElementID
-
- Data type: string
- Access type: Read-only
Identifier for the software element.
- SoftwareElementState
-
- Data type: uint16
- Access type: Read-only
State of a software element.
Value Meaning - 1
Deployable
- 2
Installable
- 3
Executable
- 4
Running
- TargetOperatingSystem
-
- Data type: uint16
- Access type: Read-only
Target operating system of the owning software element. The possible values for this property are as follows.
- Version
-
- Data type: string
- Access type: Read-only
Version of the software element. Values should be in the form [Major].[Minor].[Revision] or [Major].[Minor][letter][revision].
Remarks
The Win32_BindImageAction class is derived from CIM_Action.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/9/2012