This function library contains three routines for handling OLE automation calls.
 

OLEInvoke("object", "method", flag, params...)
Invoke a method in an OLE object. The object can either be the name registered by an OLE server or it can be an object returned by a previous call to this function. Method is the OLE method you want to call on that object. Flag can be either DISPATCH_METHOD (call a function), DISPATCH_PROPERTYPUT (set a variable to the first parameter), or DISPATCH_PROPERTYGET (retrieve the value of a variable.. For DISPATCH_METHOD, all of the parameters given are passed to the OLE method. OLEInvoke returns null on failure. Otherwise, it returns whatever the method invoked returned. This is usually a Boolean indicating success, but it could also be a string, int, float, or another OLE object
OLEFreeObject(object)
When you are no longer using a variable that represents an OLE object, you should feer them from memory with this function. Once a variable has been freed from memory you can no longer access data from it.
OLEIsObject(param)
This function tests whether param is an OLE object or not. If it is an OLE Object, it will return True; otherwise it will return False.