Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

This could make more software Win95 compatible.

- - - - -

  • Please log in to reply
9 replies to this topic

#1
bizzybody

bizzybody

    Advanced Member

  • Member
  • PipPipPip
  • 365 posts
  • Joined 08-May 05

PureBASIC's author found that after updating his programming tools that it would no longer run on Windows 95, giving the linked to missing export KERNEL32.DLL: IsDebuggerPresent error.

 

He tried various hacks with the programming, fail. The solution that worked? Fake it. PureBASIC didn't actually use that anyway.

 

http://www.purebasic.fr/blog/?p=152

 

A fake KernelEX for Windows 95, to dummy up function calls that newer compilers stick into all their output even when they won't be used, would be quite useful.

 

I'd like to run CCleaner 2.x on Win95. I bet all it needs is an erzatz response to IsDebuggerPresent.


  • Tripredacus likes this


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,303 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Well, nice :thumbup, but seemingly that is a workaround to have the VC8 compiler run in Windows 95 and actually compile a program in it (and the program needs the added stub), so I am not sure how this can be "exported" or "generalized".  :unsure:

 

jaclaz


Edited by jaclaz, 17 April 2015 - 10:05 AM.


#3
rloew

rloew

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,143 posts
  • Joined 30-May 05
  • OS:98SE
  • Country: Country Flag
I already have a program that can do that.
Ye who enter my domain. Beware! Lest you become educated in the mysteries of the universe and suffer forever from the desire to know more.

#4
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,303 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

I already have a program that can do that.

Thanks a lot for this exceptionally useful piece of news :).

 

jaclaz



#5
rloew

rloew

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,143 posts
  • Joined 30-May 05
  • OS:98SE
  • Country: Country Flag

I already have a program that can do that.

Thanks a lot for this exceptionally useful piece of news :).

jaclaz

 

Thanks.
Awareness of a solution is important.


Ye who enter my domain. Beware! Lest you become educated in the mysteries of the universe and suffer forever from the desire to know more.

#6
CamTron

CamTron

    XPocalypse Survivor

  • Member
  • Pip
  • 60 posts
  • Joined 09-April 14
  • OS:XP Home
  • Country: Country Flag

Most of us who use Windows 98/ME know how great KernelEx is with getting more modern software to run, but I still wonder why KernelEx hasn't been ported to Windows 95. Are there just too many missing functions in Win95 that it would take too long to implement them in KernelEx?


Keyboard failure...
Strike the f1 key to continue, f2 to run the setup utility.

#7
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,303 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

Thanks.
Awareness of a solution is important.

 

You are welcome, I am sure :), knowing that you have a program that can do that is something that I had really missed, maybe in a next stage of awareness I might be able to learn what is the name of the program and what is the that  it can do.

 

jaclaz



#8
rloew

rloew

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,143 posts
  • Joined 30-May 05
  • OS:98SE
  • Country: Country Flag


Thanks.
Awareness of a solution is important.

You are welcome, I am sure :), knowing that you have a program that can do that is something that I had really missed, maybe in a next stage of awareness I might be able to learn what is the name of the program and what is the that it can do.

jaclaz
I was assessing the OP's interest before going into more detail. I'm sure you could have figured it out by looking at my website.

The program is called DLLHOOK and it can satisfy the missing entry point the OP specified.
Ye who enter my domain. Beware! Lest you become educated in the mysteries of the universe and suffer forever from the desire to know more.

#9
bizzybody

bizzybody

    Advanced Member

  • Member
  • PipPipPip
  • 365 posts
  • Joined 08-May 05

I'd like to try it to see if a faux response to IsDebuggerPresent is all that is required to have CCleaner 2.x run on Windows 95B.

 

Another fix I found mention of was using a hex editor to find and change the IsDebuggerPresent text to another function call like GetCurrentProcess which has the same number of characters. However, that won't work on programs that self-test for corruption.

 

Something that just lurks waiting for calls to IsDebuggerPresent then returns False to satisfy the program that the function it won't be using "exists" would be a useful thing.

 

One thing about CCleaner 2.x that makes me think this may work is in its installed location is an executable named something like win95pop.exe (I don't have it installed now.) Doubleclick that and all it does is pop up the IsDebuggerPresent error message. Looks like a hack made specifically to stop people from using it on Windows 95. Hrmmm, I wonder what would happen if I just deleted that .exe?

 

Obviously the main executable calls that, or a dll or other file called by the main executable calls it, somewhere up the chain the call to the error popper executable would need edited to stop it.


Edited by bizzybody, Yesterday, 01:27 AM.


#10
jaclaz

jaclaz

    The Finder

  • Developer
  • 15,303 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

I'm sure you could have figured it out by looking at my website.

Who knows? :unsure:
Maybe I would have been tricked into believing that it was a released, final program and would not have looked among the pre-release ones.
 

The program is called DLLHOOK and it can satisfy the missing entry point the OP specified.

Good :), by applying a tiny amount of torture :w00t: :ph34r: I managed to get the needed info, for the record:
http://rloew.x10host.com/prerel.htm

DLLHOOK $10 + $1 S&H
The DLLHOOK Program redirects API references to alternate DLLs and/or
Function Names. This allows Programs written for other Versions of Windows to
reach APIs that might be in different DLLs than in Windows 9X or to added
support DLLs or stub DLLs. A VXD Version is available where System Code needs
to be redirected as well. This Version is compatable with KernelEx Version
4.5.2 and can extend its capabilities.

 
You see, it was not too difficult, now the specific info is here for all to be seen.
 
jaclaz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users