473,654 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Take control over ActiveX by hwnd.

1 New Member
Hi everybody.

My problem is - I want to take control over an ActiveX control of another running process. All I can obtain is a hwnd of the mentioned control. I can explore the control (coclass?) interfaces using OLE/COM viewer.

I tried to get the IUnknown interface of the control through IAccessibleFrom Window and it seems possible. But when I query IUnknown interface for another (coclass?) interfaces (for instance IGrid for MSDataGrid) it usually returns NoInterfaceSupp orted or something like that (but it works for IAccessible).

My question is - is it just possible to take control over another proccess' ActiveX control (just like I was developing an application using this control, for example check a ColumnCount property for some kind of data grid) knowing only its hwnd (obtained from Spy++ or much the same software)? I haven't found an application which could list all supported ActiveX interfaces using just its hwnd (there is Inspect32 from Microsoft Accessability Package but shows only most popular interfaces; or maybe I am wrong and it shows all available interfaces which can be accessed from another process? Maybe coclass of running ActiveX control cann't be accessed from another process and those all interfaces I'm talking about are implemented by the coclass itself and not by the visible ActiveX control? I'm not a COM specialist, unfortunatelly) .
Apr 8 '08 #1
1 2441
weaknessforcats
9,208 Recognized Expert Moderator Expert
Do some reasearch on "dll injection" and "API interception".
Apr 8 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
2018
by: Jim | last post by:
The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens: I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A button from Form1 opens Form2 and a button in Form2 sends the user back to Form1. When the user goes back to Form1 from Form2, the TreeView control rebuilds the nodes incredibly slowly. You can see the progress, as the scroll bar slowly starts...
10
3962
by: fotzor | last post by:
Hi, I'm a C++-Programmer and want to subclass the Edit used to write a SQL-Query in Access. The edit is of the special Access class OKttbx. Everything works, I injected a DLL into the Access-Process and the subclassing works but I can't get the Windowtext of the control...I tried the WM_GETTEXT message but it seems that Microsoft uses another way to get the text the user typed in. Has somebody an idea how I can get this to work? mfg...
2
2040
by: gkelly | last post by:
What is the best soltions for creating a graphical object in c# for use in a C++ app? - I heard some say you can't create an ActiveX control in dotnet and I have heard others say you can using some non-standard sutff that may not be supported later on in dotnet. Is it or is it not possible? - Is it pratical to have the C++ app ( non-managed c++ btw ) send a hwnd to c# and have the c# app overlay itself on the hwnd? If so, does anyone...
0
1005
by: MikeZ | last post by:
I have a 3rd party ActiveX Control in windows Form. It sometimes generates error which not come from my source code. How can I handle this? Thanks. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at...
0
3551
by: Berry W | last post by:
Hi, I'm trying to capture hidden window's data that is in IE's AxSHDocVw.AxWebBrowser ActiveX control. If Control and window are visible, code below works but if Control and it's window is hidden e.g. emmedded in dll, code does not save data as an picture. How should I handle this kind of situation? How can I get data printed to file if AxWebBrowser is hidden and
0
2264
by: sukhpalsingh | last post by:
With this little DLL you can embed either Mozilla ActiveX Browser Control or MSIE by just calling it's EmbedBrowser(HWND hwnd, int i) function. 0 = Mozilla Activex Browser Control and 1 = MSIE. Other available methods include: >> UnEmbedBrowser() >> ResizeBrowser(HWND hwnd) Where hwnd is an handle to a control where the browser control is
1
3081
by: Janiek Buysrogge | last post by:
Hello, I've written a Windows Forms application in .NET 2.0 and am exposing it to COM using the checkbox in Project Properties and by adding some register functions and adding it to the GAC. I'm using the ActiveX Test Container (tstcon32.exe) and I'm able to add the control to the container. All this works, well almost... I'm using some Invoke calls from worker threads that update the GUI. In native .NET this means that stuff is done on...
23
3454
by: Galen Somerville | last post by:
A VB6 ActiveX.exe raises an event which is seen by the VB6 App. Same setup in VB2005. The event to be raised is in form frmSweep. As in VB6, frmSweep is hidden when the events take place. I know by actions on the screen and sounds in the speakers that VB2005 is using the ActiveX.exe correctly. However the events are never raised !!!
0
823
by: JAnn81 | last post by:
Hi. I have an activeX plug-in which is a user control written in .NET. I used WndProc function to view the messages sent to my application. My application will be hidden when it received the following messages: msg=0x46 (WM_WINDOWPOSCHANGING) hwnd=0x51362 wparam=0x0 lparam=0x12eec4 msg=0x47 (WM_WINDOWPOSCHANGED) hwnd=0x51362 wparam=0x0 lparam=0x12eec4 In these 2 cases, the following WINDOWPOS flags are set:
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2714
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.