CoRegisterSurrogate

[DllImport("ole32.dll", SetLastError = true)]
public static extern int CoRegisterSurrogate(
   IAdviseSink pSurrogate,
   out IntPtr ppErrorObj
);

Microsoft documentation: Link

Last updated