User Guide
470
OLE Automation Function Reference
EnableExceptions
Turns on exceptions for automation functions. Exceptions are thrown for OLE
Automation objects. Exceptions are handled in Visual Basic using On Error statements to
catch all errors.
EnableRelease
Enables or disables a release or all releases in a .WSI. To enable or disable all releases,
pass a blank string into EnableRelease().
GenerateGuid
Generates a new GUID.
GetComponentDirectory
Returns the full directory path for a particular component.
GetLastError
Returns a string describing the error that occurred after a failure in another automation
call. Usually, functions return either a value of zero or an empty string upon failure.
Function Prototype void EnableExceptions(BOOL bEnable)
Parameters bEnable: TRUE to enable exceptions
Function Prototype Void EnableRelease(BSTR szRelease,BOOL bEnable)
Parameters szRelease: release to enable/disable; empty string for all
releases
bEnable: TRUE to enable, FALSE to disable
Return Value None
Function Prototype BSTR GenerateGuid()
Return Value Unique GUID generated
Function Prototype BSTR GetComponentDirectory(BSTR bsComponentKey)
Parameters BsComponentKey: name of component
Return Value Full destination path of component
Function Prototype BSTR GetLastError()
Return Value Error text of last error