Add GeneratedCode attribute to HRESULT