Customizer's Guide > Working with ActiveX Controls > Running Arbortext Editor in an ActiveX Control > HRESULT Return Values
  
HRESULT Return Values
Each method in the control’s COM interface returns one of the following HRESULT values:
S_OK — Operation successful
0x800704C7 — Operation canceled by user
Some operations can display prompts that enable the user to cancel the operation. In this case, the control returns an HRESULT of 0x800704C7. Encoded in this result is a FACILITY code of FACILITY_WIN32 and a WIN32 error code ERROR_CANCELLED. This enables the calling code to determine the operation was canceled by the user. The associated message will be The operation was canceled.
E_FAIL — Unexpected failure
In this case, there will be an associated error message for the type of failure.