473,626 Members | 3,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Documentation for capturing OutputDebugStri ng / Kernel messages

I have written a small .net application to captutre the output from calls to
OutputDebugStri ng. However it does not always work, and in general does not
seem to capture the output when it is written out from within an ASP.Net
application on Windows2000.

I have noticed using DebugView that the strings I can not capture are the
same as are only captured when DebugViews' "capture kernel" setting is
enabled.

Could anyone point me in the direction of any documentation or samples on
how to capture or read all of the outputs that are sent to OutputDebugStri ng,
and what determines whether "capture kernel" mode is required or not ?

The program I have does seem to work most of the time, but what I really
want is some documentation or information on how your supposed to do this.

thanks
Lemony

Jul 21 '05 #1
3 4794
Hi Lemony,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need hook everything that
OutputDebugStri ng writes. If there is any misunderstandin g, please feel
free to let me know.

As far as I can see, we have to use an API hook to get what the
OutputDebugStri ng is trying to write. So I suppose you need a system wide
API hook. There is some articles discussing about this on CodeProject with
source code. Here are some of them. Hope this helps.

http://www.codeproject.com/system/hooksys.asp
http://www.codeproject.com/system/Paladin.asp
http://www.codeproject.com/dll/apihijack.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Kevin

Thanks for the reply,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need hook everything that
OutputDebugStri ng writes
Yes this is correct.
As far as I can see, we have to use an API hook to get what the
OutputDebugStri ng is trying to write.


I currently use the DBWIN_BUFFER segment and DBWIN_DATA_READ Y events which I
thought would be the official way of doing things. However I cant find any
MS documentation about this either. I'll have a look at the hooks documents
you sent me, but do you think this is a preferable approach to the events ?

thanks
Lemony
Jul 21 '05 #3
Hi Lemony,

As far as I know, there is no official way of doing this. Hooking is a
reliable way to get all the messages.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1290
by: Lemon | last post by:
I have written a small .net application to captutre the output from calls to OutputDebugString. However it does not always work, and in general does not seem to capture the output when it is written out from within an ASP.Net application on Windows2000. I have noticed using DebugView that the strings I can not capture are the same as are only captured when DebugViews' "capture kernel" setting is enabled. Could anyone point me in the...
1
1958
by: Molly J. Fagan | last post by:
Hello everyone-- I'm trying to develop a help desk system to replace Trak-It. We have a help desk e-mail address and want all messages sent to that e-mail address to go into an Access database (or it could be SQL Server if there is something that allows Novell Groupwise to interface with SQL Server). We have Novell Groupwise 6 and Access 2000. Any help would be appreciated.
4
2341
by: Rukmal Fernando | last post by:
Hi, I've been looking for a good Trace message monitoring tool to monitor trace messages (through System.Diagnostics.Trace.WriteLine() etc). I need it to collect traces from non-EXE code (esp. WebParts). Can anyone recommend a good tool for my purpose? Many thanks in advance.
2
1423
by: Harikumar G | last post by:
Friends, I have a C# console application for verifying a signature of an encrypted, this is done thru the Process.Startinfo method, My dos application for the decryption is gpg.exe (gnupgi) When I tried from the dos prompt the folloing output received: ------------------------------------------------------------------------
2
8093
by: Hamish | last post by:
Hi, I want to print a message to the Visual Studio Output Window at run time. How can I do this? Thanks for any help, Hamish
3
275
by: lemony | last post by:
I have written a small .net application to captutre the output from calls to OutputDebugString. However it does not always work, and in general does not seem to capture the output when it is written out from within an ASP.Net application on Windows2000. I have noticed using DebugView that the strings I can not capture are the same as are only captured when DebugViews' "capture kernel" setting is enabled. Could anyone point me in the...
8
7588
by: db2_d_b_a | last post by:
Hello All, Brief info on the system: Db2 version : "DB2 v8.1.0.121" and FixPak "13". OS : RHEL 3 2.4.21-37.0.1 Memory : 8 GB Swap : 2 GB The issue here is the instance not being able to be started after the
3
3294
by: danbrotherston | last post by:
Hello, I am trying to get the output from the win32 platform command OutputDebugString. I have used the following C++ code as a guideline: http://groups.google.com/group/microsoft.public.vc.utilities/browse_frm/thread/1434418cb968d053/1a3c957675242c7e?lnk=st&q=DBWIN_BUFFER&rnum=3#1a3c957675242c7e And I have been able to translate most things into python, but I have been unable to get it to work. I use the pywin extensions to call
6
1191
by: paragpdoke | last post by:
Hi Friends. I'm new to VB 6.0 (SP6) and just managed to write my first dll. This dll has some modules / procedures which are supposed to keep emitting strings (messages) based on what actions it is doing. I want to know how should the dll be made so that once it is included in another Project (by adding a reference), the messages can be captured by the other application. I'm not sure if what I state as an analogy is correct ...but would...
0
8268
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
8202
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,...
1
8366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8510
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
7199
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
6125
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
5575
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
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1812
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.