Questions tagged [dcom]

Distributed COM (DCOM) is a protocol that enables software components to communicate with one another over a network.

DCOM is the distributed extension of COM. It specifies the additional infrastructure that is required to further extend COM to networked environments and enable software components to communicate with one another over a network. DCOM is designed for use across multiple network transports, including Internet protocols such as HTTP. It is based on the OSF's DCE RPC specification and implemented as a layer over Microsoft RPC.

403 questions
0
votes
0 answers

How to have separate thread serving each cliet request in DCOM

I would like to write one com SERVER in such a way so that each new client request to this com server should be served by separate thread. So far I have created one sample MTA out of proc COM server, but what I observe when I make a com function…
user2893899
  • 103
  • 1
  • 2
  • 8
0
votes
1 answer

DCOM calling process in remote target

so consider that a process in one computer tries to call a method of an interface in another process in another computer. How does DCOM knows that the process can be instantiated on a remote computer and afterwards actually instantiate that…
czioutas
  • 1,032
  • 2
  • 11
  • 37
0
votes
1 answer

Upgrading COM call-back interface

We have a problem with COM Connection point callback interfaces In our Sample.idl we have few call-back interfaces ISomeEvents interface ISomeEvents : IUnknown { HRESULT Event1([in]int nData); HRESULT Event2([in]int nData); …
user2101801
  • 719
  • 2
  • 8
  • 20
0
votes
1 answer

Third party software COM library free/open usage?

On Windows, can I freely make usage of a COM library that has been registered by a commercial application (software)? Is the company allowed to remove completely its COM library or some functions of the COM library in a future release? Are there…
0
votes
0 answers

How to run DCOM server as logged user?

I have the following situation: my application, a service, instantiates a DCOM server (exe) using CoInitialize and CreateInstance in order to get its interface pointer, it is working fine on XP but since this server creates a GUI it doesn't work on…
0
votes
0 answers

Memory Leak Analysis in a DCOM Server Developed in VC6

I am developing an age old DCOM Server application and my job is to find the Memory Leaks in that DCOM Server. The DCOM Server application was developed in VC6 and MFC. Is there any Free tools available to do the Memory Leak analysis? I have tried…
Sathish Guru V
  • 1,417
  • 2
  • 15
  • 39
0
votes
0 answers

WMI call fails from .NET code, but not C++

From C# (.NET 4.0), we're making a WMI call like this: var connectOptions = new ConnectionOptions { Authority = "ntlmdomain:" + paramValues.Domain, Username = paramValues.UserName, Password = paramValues.Password }; var scopeString =…
Chad
  • 473
  • 7
  • 18
0
votes
1 answer

APScheduler and Unmarshallable Objects

I would like to execute a function every second. I used the APScheduler and it works fine. However, there's a great performance penalty due to the fact that during each job I recreate the object which handles the connection to a server. I would like…
remus
  • 2,635
  • 2
  • 21
  • 46
0
votes
1 answer

How to write a DCOM server in C# that you can call remotely?

Given the following C# server code to start a DCOM server: using System; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.ServiceProcess; using System.Threading; using System.Runtime.InteropServices; namespace…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
1 answer

Remote WMI not working when hosted as Windows Service

I am working on Remote WMI. I have done all DCOM settings, CIMV2 and WMI settings for particular User. When I run the application as console app, it works fine and fetches me the data. But when I host the same as Windows service, it is throwing…
0
votes
1 answer

DLL/TLB in Java<->DCOM communication

I have to write an OpenOffice add-on (in Java) which communicates with DCOM server of some closed-source application. The major problem is that, I don't have any documentation about server's Interfaces . All I have is a VB/C++ SDK kit for the…
beermann
  • 358
  • 1
  • 6
0
votes
0 answers

DCOM session moniker

The code is in my OPC Client, and I want to activate a DCOM OPC Server. My purpose is to activate the OPC Server in session 1, but it works out still in session 0, i mean the OPC Server process is still run in session 0. Because the OPC Server…
Nature
  • 13
  • 2
0
votes
4 answers

"Object variable or With block variable not set" when attempting to create COM object

I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can see…
Phillip Wells
  • 7,402
  • 9
  • 43
  • 41
0
votes
1 answer

Powershell script adding local user through registry to COM security settings in component services

I am adding in a monitoring system that needs a local user on each server (1000+) and it needs to have permissions to DefaultAccessPermission, DefaultLaunchPermission, AccessPermission and LaunchPermission. I did find the following script…
screwuphead
  • 71
  • 11
0
votes
0 answers

Create a Win32 Console Client with C# to Access remote DCOM Server, got the error 80070005

My OS is Win7 Ultimate Chinese edition, tool is VS2010 Ultimate. I created a DCOM Serve with VS2010 following below steps: Visual C++ -> atl -> exe -> add a interface, and compiled it with no error. Then copy the idl file to another directory, using…
Richard
  • 11
  • 4