MSFN Forum: Dummy DLL replacements - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Dummy DLL replacements how to create those? Rate Topic: -----

#1 User is offline   RainyShadow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 30-December 05

Posted 18 January 2007 - 11:55 AM

As the topic says, how one could create a dummy DLL file to replace an NT/XP DLL for use on Win9x ? Like the PSAPI.DLL replacement which was floating around.

I'm currenly using the freeware TVUPlayer. The executable seems to be Win9x compatible, but it uses a debuging DLL CrashCatcher.dll which imports OpenThread from Kernel32.dll.
My first try was to replace this function with CreateThread by hex-editing the file. Of course, it didn't worked because the function name length is different which messes up the DLL.
I've looked at Kernel32.dll exports, and choose the DeleteAtom function (what's this?!?) which has the same name length as the original one.
Currently the player works fine :P

But i'd preffer to create a dummy replacement for CrashCatcher.dll, as it seems to not be needed for proper function of the program and just wastes resources.

The problem is that i don't know how, my last (serious) programming attempts were on my Apple //e clone.

A quick guide would be best (LLXX, Tihiy ?)
Thanks in advance.

P.S. I'd preffer mingw over VC++

This post has been edited by RainyShadow: 18 January 2007 - 11:57 AM



#2 User is offline   LLXX 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,399
  • Joined: 04-December 05

Posted 20 January 2007 - 02:05 AM

What you need is an "import table editor".

Kill that DLL completely from the import table.

Of course, if/when it crashes it'll crash anyway...

Then email them and tell them that their software must be of quite an awful quality if they aren't even confident enough to release a version that doesn't require added debugging sh­it.

#3 User is offline   awergh 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,054
  • Joined: 02-October 05
  • OS:none specified
  • Country: Country Flag

Posted 20 January 2007 - 04:58 AM

would you be able to recommend a piece of software to use?

#4 User is offline   RainyShadow 

  • Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 30-December 05

Posted 22 January 2007 - 06:24 AM

View Postawergh, on Jan 20 2007, 12:58 PM, said:

would you be able to recommend a piece of software to use?

I'd like to ask this too.

I've tried with LordPE, but the modified program crashes on startup :(

#5 User is offline   oscardog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 234
  • Joined: 29-June 06

Posted 22 January 2007 - 06:36 PM

View PostRainyShadow, on Jan 22 2007, 12:24 PM, said:

View Postawergh, on Jan 20 2007, 12:58 PM, said:

would you be able to recommend a piece of software to use?

I'd like to ask this too.

I've tried with LordPE, but the modified program crashes on startup :(

Once you have analyzed the import/export of the dll you can make your own dll which in some cases you can return a null or return a value to bypass said event

This post has been edited by oscardog: 22 January 2007 - 06:41 PM


#6 User is offline   LLXX 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,399
  • Joined: 04-December 05

Posted 23 January 2007 - 04:14 AM

View PostRainyShadow, on Jan 22 2007, 06:24 AM, said:

View Postawergh, on Jan 20 2007, 12:58 PM, said:

would you be able to recommend a piece of software to use?

I'd like to ask this too.

I've tried with LordPE, but the modified program crashes on startup :(
The other option would be to dump with LordPE and use ImpRec to rebuild entire import table, but omitting the DLLs that you don't want.

There are programs available that will allow the editing of the import tables/reconstruction of them, I forget the names since I don't use them often.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy