Returns the status code of the last OLE operation.
For member functions that return a BOOL value of FALSE, or other member functions that return NULL, GetLastStatus returns more detailed failure information. Be aware that most OLE member functions throw exceptions for more serious errors. The specific information on the interpretation of the SCODE depends on the underlying OLE call that last returned an SCODE value.
For more information on SCODE, see Structure of COM Error Codes in the Platform SDK documentation.