Error 0x80070649

Value: -2147023287 | 0x80070649 | 2147944009

What does it mean ?

ERROR_INVALID_HANDLE_STATE  
Handle is in an invalid state.
Value: 1609 | 0x0649 | 0b0000011001001001

Where does it come from ?

FACILITY_WIN32  
Provides a way to handle error codes from functions in the Win32 API as an HRESULT. (Error codes in 16 - bit OLE that duplicated Win32 error codes have also been changed to FACILITY_WIN32)
Value: 7 | 0x007 | 0b00000111

Other Errors for FACILITY_WIN32