19 questions
0
votes
1
answer
717
views
Inventor COM object not released when created with Activator.CreateInstance()
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 ...
1
vote
0
answers
515
views
How can I get my Windows service to see objects in ROT?
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 ...
0
votes
2
answers
109
views
Out of process COM object dynamic versioning
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. ...
3
votes
1
answer
927
views
How can I get IEnumMoniker.Next to return monikers when running as administrator?
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 ...
2
votes
0
answers
318
views
Why would a Windows service not be able to access the Running Object Table
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 ...
0
votes
1
answer
960
views
Get multiple running COM objects of same Type
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;
...
1
vote
2
answers
250
views
AllowAutoPlay Never Gets Called
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 ...
2
votes
1
answer
640
views
C# Running Active Automation Object - How to Source events?
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 ...
1
vote
1
answer
4k
views
C# : Get COM object from the Running Object Table
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 ...
1
vote
1
answer
580
views
How does Running Object Table implement weak references?
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 ...
2
votes
1
answer
2k
views
Anyone got C# source for Running Object Table viewer?
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 ...
1
vote
0
answers
262
views
casting an generic object to type of com class fails
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 ...
5
votes
1
answer
6k
views
Where can I get a Running Object Table Viewer like IROTVIEW?
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?
3
votes
1
answer
2k
views
Add items to the ROT( Running Objects Table)
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 ...
1
vote
0
answers
125
views
OLE registration database access with Iron Python
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 ...
0
votes
1
answer
199
views
How to place object in ROT
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 ...
1
vote
0
answers
2k
views
Creation of a strong reference to COM object in ROT with C#
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 ...
1
vote
1
answer
1k
views
how to programmatically register Word instance in running object table?
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 ...
21
votes
3
answers
7k
views
Problems accessing the Running Object Table
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 ...