How HRESULTs work. An HRESULT is an opaque result handle defined to be zero or positive for a successful return from a function, and negative for a failure. Generally, successful functions return the SOK HRESULT value (which is equal to zero).
PROGRAM OFFERINGS:
HResults has consolidated much of our executive and management programming under our HResults Academy initiatives. The mission of the Academy is to provide HR Executives and professionals with an alternative to traditional Leadership and Human Resources development curricula. Our emphasis is on the application of technical and interpersonal skills in a way that engages others, stresses critical thinking, and prompts HR professionals to become business “people” rather than business “partners”.
Provocative, collaborative and pragmatic, HResults Academy programs bring together professionals with diverse backgrounds, different perspectives and often contrary points of view. Our objective: reflect the real world in our content, thinking and approach.
We provoke thinking about HR and HR-related tasks in a way that forces participants to view issues beyond the lens of their own experiences. The “way it’s always been” isn’t the way it will always be and we embrace that reality.
We also offer a separate track for line managers and other business executives seeking to expand their range of thinking about people issues and enable them to better collaborate with progressive HR practitioners.
For more information about our research or programming, please contact us.
The 32bits in an HRESULT error code have meanings, allowing the reader to gain additional insights into the error.
Of note:
The 32nd bit (the top bit) indicates if an error occurred or not. This is why errors are 0x8xxxxxxx.
The 16-26 bits are the Facility - the originating API (Win32, CLR, XAML, etc.).
The 0-15 bits are the (Error) Code.
Common NULL Facility Error Codes
Name | Description | Value |
---|---|---|
S_OK | Operation successful | 0x00000000 |
S_FALSE | Operation successful but returned no results | 0x00000001 |
E_ABORT | Operation aborted | 0x80004004 |
E_FAIL | Unspecified failure | 0x80004005 |
E_NOINTERFACE | No such interface supported | 0x80004002 |
E_NOTIMPL | Not implemented | 0x80004001 |
E_POINTER | Pointer that is not valid | 0x80004003 |
E_UNEXPECTED | Unexpected failure | 0x8000FFFF |
Common Win32 Facility Error Codes
These are built by passing a System Error Code to HRESULT_FROM_WIN32
Name | Description | Value |
---|---|---|
E_ACCESSDENIED | General access denied error | 0x80070005 |
E_HANDLE | Handle that is not valid | 0x80070006 |
E_INVALIDARG | One or more arguments are not valid | 0x80070057 |
E_OUTOFMEMORY | Failed to allocate necessary memory | 0x8007000E |
Related Links: