# SipGetCurrentIM

```csharp
[DllImport("coredll.dll", SetLastError = true)]
public static extern int SipGetCurrentIM(
   IntPtr idThread,
   ref SHACTIVATEINFO lpShActivateInfo
);
```

Microsoft documentation: [Link](https://learn.microsoft.com/en-us/previous-versions/windows/embedded/aa453744\(v=msdn.10\))
