GetErrorInfo

[DllImport("ole32.dll", SetLastError = true)]
public static extern int GetErrorInfo(
   uint dwReserved,
   out IErrorInfo pperrinfo
);

Microsoft documentation: Link

Last updated