Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
717 views

My problem is this: If Autodesk Inventor is not running, my app (console app) creates a new instance with Activator.CreateInstance(InventorType); and uses it as a COM object. When my app does not quit ...
dee7kay's user avatar
  • 23
1 vote
0 answers
515 views

EDIT: Though tangentially related, the tagged "duplicate" is not a true duplicate of this question, and more importantly does not answer this question (because the problem is different). I am working ...
Luke's user avatar
  • 1,079
0 votes
2 answers
109 views

I am using out-of-process COM object that is hosted by myexe.exe. There are multiple versions of those exes which host the COM object. Each version can have slightly changed interfaces and methods. ...
Yuri Vovchenko's user avatar
3 votes
1 answer
927 views

This code has been running fine for years inside a utility program. We recently updated the program to enforce UAC but we find this code only works when NOT running as administrator; the code inside ...
sartoris's user avatar
  • 939
2 votes
0 answers
318 views

I have a Windows service running in the background and I want at some point to tell him to get objects from the Running Object Table. The problem is that it seems impossible to achieve, whatever I ...
Norgannon's user avatar
  • 539
0 votes
1 answer
960 views

I'm trying to find the first visible instance of Word. I have found some helpful code here and modified it sligthly. using System; using System.Diagnostics; using System.Runtime.InteropServices; ...
Rene Niediek's user avatar
1 vote
2 answers
250 views

I have a WinForms application. Just before creating the actual form in Program.cs, I instantiate an Autoplay class. Registration is successful, after the obligatory first return value of 65536, but I ...
Sarah Weinberger's user avatar
2 votes
1 answer
640 views

I have a (long running) console application, written in C#, which I want to be able to manipulate through COM (so no InProc DLLs and regasm.exe). IDispatch is all I need - so a classic OLE Automation ...
Cleric's user avatar
  • 3,608
1 vote
1 answer
4k views

I'm working a project that uses API from a third party COM Server. The COM Server is a local server (out of process exe) on which I have no control. I'm trying to access COM objects from the runnin ...
nrdev's user avatar
  • 49
1 vote
1 answer
580 views

When you register a COM object in the Running Object Table with a zero flag (requesting a weak ref), the ROT increments the ref count by 1. The act of getting an object from the ROT increases the ref ...
Seva Alekseyev's user avatar
2 votes
1 answer
2k views

Answering my own question here. The Running Object Table (ROT) is a Microsoft Component Object Model (COM) artefact where Excel and Word documents can register themselves to make them accessible to ...
S Meaden's user avatar
  • 8,320
1 vote
0 answers
262 views

I have a COM Class which is registered in to ROT, through an other application i am fetching the instance of my com class from ROT and casting it to its type giving following error. Unable to cast ...
sharan kumar's user avatar
5 votes
1 answer
6k views

Once upon a time Windows SDK (or it was Visual Studio) had a tool named IROTVIEW which enumerated the Running Object Table (ROT). Where can I get this tool now?
Mike's user avatar
  • 1,349
3 votes
1 answer
2k views

I know how to use *****.GetActiveObject(ProgId), however the problem is that several of the Applications I use this code line on are not added to the ROT, even if they are already open, I get an ...
comp_sci_in_game_dev's user avatar
1 vote
0 answers
125 views

I am trying to extract an active object using comtypes module: import comtypes.client as cc table = cc.GetActiveObject() but its throwing an error saying that it needs at least one argument. I think ...
konrad's user avatar
  • 3,756
0 votes
1 answer
199 views

i went through this link http://blogs.artinsoft.net/Mrojas/archive/2011/09/30/Running-Object-Table-and-NET.aspx i want to know, can we place MFC object in RunningObjectTable or not. If yes how can we ...
Raj's user avatar
  • 68
1 vote
0 answers
2k views

I need to bind to a running COM instance (there can be many instances of what I am looking for, so I need to figure out which one is the right one by examinating the Running Object Table) Using ...
jdehaan's user avatar
  • 20k
1 vote
1 answer
1k views

This is a possible duplicate. Couldn't find the exact one, I remember going through one such long time back. The tool needs a capability to detect if any MS Word file is opened anywhere from the ...
nawfal's user avatar
  • 73.8k
21 votes
3 answers
7k views

In my program I use the Running Object Table (ROT) to ensure only one instance of my program is running. Since I "inherit" that code from a developer who unfortunately left the company, I am the poor ...
Fischermaen's user avatar
  • 12.5k