It's so annoying to look for HRESULT codes... I remember some, but not all. So, why not to list them here? At least they will be easy to find.
Well, actually it's easy in VS too -- the codes are declared in WinError.h, it's just it is never opened and hard to open with one click. So, here they are (just S_*, E_* and CLASS_E_* -- class factories codes):