0 when the function is successful. A negative number is returned when the function fails.
The negative numbers that the function can return are:
-1 – The attribute is not an OLE variable.
-2 – The Instantiation property is set to Automatic.
-3 – The object is not loaded by the defined variable.
-4 – The handle provided by the variable is not a valid handle.
-5 – The object was already instantiated.
-6 – The object could not be updated.
|