FAILED

#define FAILED(Status) ((HRESULT)(Status)<0)
 

Provides a generic test for failure on any status value. Negative numbers indicate failure.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winerror.h.