public interface ComOleOps
Modifier and Type | Method and Description |
---|---|
BaseDataType[][] |
call(long comId,
java.lang.String methodName,
ComParameter[] aParams)
Execute a COM object method call.
|
long |
create(java.lang.String comObjectType,
boolean topLevel,
boolean noCreate)
Obtain a reference to an automation.
|
java.lang.String |
getName(long comId)
Get the COM object name associated with the given COM object ID.
|
BaseDataType |
getProperty(long comId,
java.lang.String prop)
Get the specified COM object property.
|
boolean |
isSupported()
Gets COM Automation support level for particular OS.
|
void |
release(long comId)
Release and destroy the COM object with the specified ID.
|
boolean |
setProperty(long comId,
java.lang.String prop,
ComParameter val,
ComParameter[] indices)
Set the specified COM object property.
|
void release(long comId)
comId
- The COM object ID.long create(java.lang.String comObjectType, boolean topLevel, boolean noCreate)
comObjectType
- The name of the automation.topLevel
- Only return top-level. If the requested comObjectType
is not a top-level,
return null
.noCreate
- Must exist. Do not allow creation of new instances. Only used with topLevel
requests.0
if such automation does not exist
or it does not satisfy the parameter constraints.BaseDataType getProperty(long comId, java.lang.String prop)
comId
- The COM object ID.prop
- The COM property name to retrieve.BaseDataType
instance with the COM property's details.boolean setProperty(long comId, java.lang.String prop, ComParameter val, ComParameter[] indices)
comId
- The COM object ID.prop
- The COM property name to set.val
- The details about property's new value.indices
- A variable number of indices used to access this property's element.true
if the property was set successfully.BaseDataType[][] call(long comId, java.lang.String methodName, ComParameter[] aParams)
comId
- The COM object ID.methodName
- The COM method name to call.aParams
- An array with this call's arguments supplied to the COM object method call.java.lang.String getName(long comId)
comId
- The COM object ID.boolean isSupported()
TRUE
if COM objects are supported, FALSE
otherwise.