473,413 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

How to Patch the windows API SetUnhandledExceptionFIlter in 64 bit machine

Hi All,

I have an application, where I have patched the windows API SetUnhandledExceptionFilter function. It works fine in 32 bit machine, but ,complains an error when I ran the application in 64 bit machine.

Can any one help to solve this?

Thanks,
Sendil
Mar 3 '08 #1
3 3613
weaknessforcats
9,208 Expert Mod 8TB
What do you mean that you patched a Win32 API function?

Plus, what kind of error are you getting? Which OS?
Mar 3 '08 #2
What do you mean that you patched a Win32 API function?

Plus, what kind of error are you getting? Which OS?
I have stolen 5 bytes from the address of SetUnhandledExceptionFilter in Kernel32.dll and added my patch bytes( 0x33, 0xC0, 0xC2, 0x04, 0x00 ) to it.
So, the SetUnhandledExceptionFilter will never get executed when ever a call is made. This technique is used to enforce your own exception filter so that no one can re-set their own filter once you patched.

When I executed the same in my 64-bit machine it give access violation error.

Thanks,
Sendil
Mar 6 '08 #3
weaknessforcats
9,208 Expert Mod 8TB
It looks like Microsoft has fixed a bug.

I have no advice since I have never heard of anyone doing stuff like this. I'm just a C++ junkie.

Clearly the address of SetUnhandledExceptionFilter is outside your process address space.
Mar 6 '08 #4

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

Similar topics

1
by: Dinesh Garg | last post by:
Hi, I am facing one more problem. As soon as i started the sql server first time, my windows 2000 machine reboots and i was not able to start sql server again. I had to uninstall and install...
0
by: MLH | last post by:
The following site has a copy of mdacsdk.exeon it....
5
by: Richard Mintz | last post by:
Hi, I am trying to deploy a C# application to a Windows 2000 machine. When I try to run the app after the install i get a runtime error. the setup works on both XP and windows 2003 server...
4
by: Water Cooler v2 | last post by:
Can someone give me a step by step tutorial on how to compile the PHP source tree on a Windows XP Pro machine? For a background, I have mostly programmed in VB6, C# and VB.NET. I understand the...
19
by: markodilore | last post by:
I have some experienced with MySQL on Windows, but now I'm trying with mac os, I can access the mysql from the terminal, but i can view the databases but i can't modify or create a new one. I get...
2
by: abhilash12 | last post by:
hai ajax is not working in windows nt machine in nt machine status=501 so pls help me
11
by: Franz Marksteiner | last post by:
Hi there ;-) Is there a way to trigger a remote PHP script from a Windows XP machine (with boardutils)? -- Freundliche Grüße, Franz Marksteiner
1
by: jriechers | last post by:
I need to create a report that shows in calendar form each patch window, the date and the time they start. tblPatchWindows includes the following fields: 1. PatchWindow 2. PatchDate 3....
6
by: sherrygomindes | last post by:
Hi I have written a perl script using the Telnet module. I need to remotely login in from one windows XP machine to another XP machine. But i get errors which i can't figure out the reason....
1
by: Valan Valan | last post by:
Hello, We have two separate database servers. One with DB2 v8.2/windows 2003 and the 2nd one is DB2 v9.7/windows 2008. Also, we have a separate machine for the admin client, which has DB2 V8.2...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.