OleIsRunning

[DllImport("ole32.dll", SetLastError = true)]
public static extern int OleIsRunning(
   IOleObject pObject
);

Microsoft documentation: Link

Last updated