dcom

How to create a DCOM server on a specific windows session?

Hello, My questions regards DCOM servers and windows sessions: I have a windows service, running in win 2008 platform. on some scenarios, this service has to show some UI (Open a window). Despite the ugly design , it is the service it self that has to trigger the window opening. In order to do so, i have a DCOM server that is created ...

change Access Permissions in Component Services > COM Security with script/api?

is there an api to change the Access Permissions for the COM Security? i need to write new values to "Edit Limits..." and "Edit Default...". are these plain registry settings? can't find how to set these entries. ...

Programmatically discovering "guest only" sharing/security model

On Modern Windows, the default configuration is done in such a way that if I network-login as a local user, I actually only get authenticated as a guest (more details about this behavior is explained in http://technet.microsoft.com/en-us/library/cc786449(WS.10).aspx) When my program tries to access WMI on this kind of servers via DCOM, ...

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 Application. SDK contain a library in dll and a bunch of *.tlb files. In SDK documentation ther...

Microsoft and SAP

For many years I have used the old "SAP DCOM Connector" to communicate between Microsoft based applications and SAP. Unfortunately this old but good and performant technology is no longer supported by SAP since years. Therefore I want and must migrate to another newer technology. First there is the "SAP Connector for .NET 2.0". At first...

Getting dumps for COM application crash

Hi I have a web application which uses 2 DCOM components. In a particular scenario one of the DCOM components crashes. i am unable to get the dumps as it crashes as soon as it starts. Is there anyway i can get the dumps for the same. ...

Unable to access DCOM object from Windows Service written in c# (platform Windows 2003 server) but can access the object when hosted as a console application

I have written an application in C# that writes to an accounting system via a DCOM object (name of the object is Toolkit Object). When this application is hosted as Windows Service in Windows 2003 the service is unable to open the DCOM object although the user identity under which the service is running has all the necessary access right...

Why is my DCOM client locking on a call to SendMessage?

Running on XP. I have a client that calls calls CoInitializeEx(NULL, COINIT_MULTITHREADED), loads a (local) DCOM object, and attaches an event interface so the DCOM object can send back events. The client looks a lot like notepad with a multi-line textbox covering the client area to display event messages. Here are the calls that create ...

The relationship between OPC and DCOM

Hi all, I am trying to grasp the link between OPC and DCOM. I have watched all four of the tutorials here and I think I have a good feeling for what OPC is, but in one of the tutorials (the third one 35 seconds in) the narrator states that OPC is based on DCOM, but I do not understand how the two are really linked. My confusion comes f...

VB6 app not executing as scheduled task unless user is logged on

I would greatly appreciate some help on this one! It may be a tricky one. :) Problem I have an VB6 application which is set up as scheduled task. It starts every time, but when executing CreateObject() it fails if a user is not logged on to computer. I am looking for information on what could cause this. My primary suspicion is that s...

Activate COM object using website doesn't work in Windows 2003 server

I have been trying really hard to activate and launch a COM object using an ASP.NET web application. The aspx website has a code-behind file that has a reference to this COM object (which is an actual application - a CAD software). When required, the VB code creates (or launches) the application. The complete set-up works in a Win-XP (3...

How can I reliably check client identity whilst making DCOM calls to a C# .NET 3.5 Server?

I have an old Win32 C++ DCOM Server that I am rewriting to use C# .NET 3.5. The client applications sit on remote Windows XP machines and are also written in C++. These clients must remain unchanged, hence I must implement the interfaces on new .NET objects. This has been done, and is working successfully regarding the implementation of...

Is there a alternative to DCOM on unix?

Hi All, Is there a COM implementation on UNIX platform. My requirements is that I have a COM client on windows , But I want the server on a AIX servers. I want to write COM clients and servers on unix platforms. Is there anyway to do this?. I tried looking for EntireX from software ag, but couldn't find it. also tried other commerci...

DCOM problems building a VB6 app in CruiseControl.net

Hi there, I can successfully build a VB6 application that relies upon several DCOM settings on the build machine, no problem. However. The second time I try to run the same build process, it fails, as DCOM and/or IIS have locks on the output files that I'm trynig to rebuild. Currently, if I log onto the build machine and reset iis (us...

Programming the Virtual Disk Service API in C# using COM Interop

I would like to write a small utility/class library in C# that can enumerate the primary partitions on the disk associated with volume C on Windows 7. I would like to modify the active flag for any one the primary partitions on that disk. I would like to "consume" this library from managed code (C#). As I understand it, I will need to us...

COM+ application deployment using command-line

Hi I need to deploy my COM dll as a COM+ application. I used to do that from Component Services manager (dcomcnfg.exe). But my requirement is to deploy it from command-line. Is there a command to do that? Update: And how to uninstall the same? Thanks. ...

does declaring appid for com exe lib makes it a dcom?

we've got some legacy com libs exposed as exe, they register as dcom. we'd like to get rid of any dcom-ness and not be forced to give users extra dcom execution rights. can someone point me to some documentation or samples (rgs files, registration code?) how I register an exe com lib without dcom? ...

COM/DCOM problem when hosting executable is run as a service

I am struggling for days now with the following problem: We have an executable that hosts a COM server, say x.exe. The COM object is instantiated as follows on the calling site: hRes = CoCreateInstance(CLSID_InterceptX, NULL, CLSCTX_SERVER, IID_IInterceptX, (void**)&pInterceptX); It all works fine when x runs as an re...

imagegrabwindow + https = black screen

I'm doing something stupid and trying to capture thumbnails, snapshots, images of a html webpages. I'm doing something along the lines of: http://stackoverflow.com/questions/443837/how-might-i-obtain-a-snapshot-or-thumbnail-of-a-web-page-using-php DCOM + IE + PHP (imagegrabwindow; example from manual) Everything works PERFECT until I...

MS office word component runs only if the server is logged on with the same identity

Hi I have a webservices running on a server, which converts word document into pdf using word automation. I have given a windows network user account in the identity tab on the MS Office word component using the DCOMCNFG.exe. I am getting below mentioned error Exception Message: The message filter indicated that the application is bus...