SipSetCurrentIM

[DllImport("coredll.dll", SetLastError = true)]
public static extern int SipSetCurrentIM(
   IntPtr idThread,
   IntPtr idService
);

Microsoft documentation: Link

Last updated