Zero (0) is returned when the function succeeds.
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 of the defined variable is set as Automatic and not as None.
-3 – The object has already been loaded by the defined variable.
-4 – Undetermined failure.
The COM's handle can only be retrieved by the COMHandleGet function.
|