CoUnmarshalHresult

[DllImport("ole32.dll", SetLastError = true)]
public static extern int CoUnmarshalHresult(
   IntPtr pstm,
   out int phresult
);

Microsoft documentation: Link

Last updated