Share via


Error Handling (Windows CE 5.0)

Send Feedback

The APIs exposed by the Media Query Engine notify the calling program of error conditions in the following ways:

  • MediaQueryEngine functions return Boolean or an object (a smart pointer).
  • MediaQueryEngine functions that return Boolean values return true or false indicating success or failure. In case of failure, they set the last error. The last error definitions can be found in winerror.h.
  • For the MediaQueryEngine functions that return an object, call IsValid on the returned object to find if the operation was successful. If IsValid returns false, check GetLastError for more information about the failure.
  • The MediaQueryEngine does not set last error in case of success.
  • In case of UPnP errors, the media query engine leaves last error as set by UPnP and indicates to the application that there is no data available.

See Also

Media Query Engine Architecture

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.