MSFN Forum: Kext: DIY KernelEx extensions - MSFN Forum

Jump to content


  • 12 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Kext: DIY KernelEx extensions Latest: K452stub (25Feb); Core.ini (2Feb, post#144); Ktree9 (9Jan) Rate Topic: -----

#121 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 09 January 2013 - 11:12 PM

View Postjumper, on 09 January 2013 - 03:38 AM, said:

Ktree9 has been posted. :hello:

Nice!!! :yes:

View PostMiKl, on 09 January 2013 - 06:22 AM, said:

Hi Jumper, with iphlpapi4 running both Sunbird 0.5 and OpenOffice 3.2 crash on start on my system so I had to go back to #3.

FWIW, version 4 works fine with HoverIP and SAP GUI for Java (so too does version 3, of course).

Joe.

This post has been edited by jds: 09 January 2013 - 11:17 PM



#122 User is offline   jumper 

  • Masters HJ/TJ'er (back in training)
  • PipPipPip
  • Group: Members
  • Posts: 361
  • Joined: 21-January 11
  • OS:98SE
  • Country: Country Flag

Posted 10 January 2013 - 06:34 AM

Thanks again to everyone for testing. It seems I've make too many changes all at once and it's not clear where something has gone wrong.

@MiKl: Sunbird 0.5 (zip version) does not require KernelEx (Depends and IP36 both give it a clean bill of health). It runs fine in 98SE for me with Kex disabled or in any mode. It does link to Iphlpapi.dll but has no problems with iphlpapi4 using either the Kexstubs or local copy method. Using the local copy method I can see in a process viewer (TaskInfo2000) that both the original and wrapper are loaded. Questions: Are you using the new definitions? Are you using the Kstub or local-copy method? "Crash" is extremely vague--can you provide some details?

@schwups: "...IpHlpDll Entry not found (7b340000 0)" is my debug message from the DLL startup function as the load is about to fail. 7b340000 is the address returned by LoadLibrary for C:\Windows\System\iphlpapi.dll and 0 is the address returned by GetProcAddress for ??? (silly me for not including the API name in the debug message :wacko: ). It appears from the log that it actually loaded successfully on the first call to GetAdaptersAddresses, then failed on the second call--this could be because it follows a call to CreateActCtxW (that has caused trouble in the past) or something to do with how KernelEx hooks GetProcAddress. Try commenting out Kernel32:CreateActCtxW (and rebooting); if that doesn't help, please try the local-copy method.

@jds: Can you test using the Kexstubs method (clear the KnownDLLs entry and use the new definitions)? It looks like the global- and local-copy methods might be immune to something that is ailing the Kexstubs method.

For anyone experiencing R6034 runtime errors in OpenOffice or other apps, try commenting out the Msvcr90 and/or the Msvcr sections-> "[;Msvcr90.dll]", "[;Msvcrt.dll]". [ reference1, reference2 ]

If the three of you can confirm that apps that worked with iphlpapi3 and older definitions also work with iphlpapi3 and the new definitions, that will isolate iphlpapi4 as the problem. If modifications to the new definitions are needed to get iphlpapi3 to work again, perhaps iphlpapi4 will also work.

This post has been edited by jumper: 10 January 2013 - 06:39 AM


#123 User is online   MiKl 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-December 11
  • OS:98SE
  • Country: Country Flag

Posted 10 January 2013 - 12:04 PM

Error message from Sunbird. Text is unfortunately in German.

SUNBIRD verursachte einen Ausnahmefehler 03H in Modul KERNEL32.DLL bei 0187:bff768a1.
Register:
EAX=c0030900 CS=0187 EIP=bff768a1 EFLGS=00000246
EBX=00000000 SS=018f ESP=00c9fbb8 EBP=00c9fbec
ECX=ffffff64 DS=018f ESI=7813221e FS=39df
EDX=00000000 ES=018f EDI=00000000 GS=0000
Bytes bei CS:EIP:
c3 cc cc 55 8b ec 56 57 68 c0 d4 fc bf e8 01 d9
Stapelwerte:
78132236 9c193b66 00000000 78130000 822e65f8
0000000a 00000004 00c9fbbc 00c9f9d0 00c9fdb4
78138ced e4cb8bd2 fffffffe 00c9fdc4 78132348
78130000

After closing the error box another message appears saying that NEGOTIAT.DLL is missing.
Hope that helps.

Will test more later this evening.
Follow up:
When using the new defs Sunbird and OpenOffice crash no matter if iphlpapi 3 or 4 is 'called'. Is this the correct term ?
Follow up #2:
Commenting out the msvcr... sections seem to have no positive effect on my system.

This post has been edited by MiKl: 10 January 2013 - 05:48 PM


#124 User is offline   jumper 

  • Masters HJ/TJ'er (back in training)
  • PipPipPip
  • Group: Members
  • Posts: 361
  • Joined: 21-January 11
  • OS:98SE
  • Country: Country Flag

Posted 10 January 2013 - 09:01 PM

MiKl> SUNBIRD verursachte einen Ausnahmefehler 03H in Modul KERNEL32.DLL bei 0187:bff768a1.
A Google search for "03H KERNEL32.DLL bff768a1" led me to this post by jds, so clearly the Active Context (*ActCtx*) stubs are not working and need to be removed. SAP GUI for Java will surely break for jds when he tests with the "new" definitions because of this regression.

Also, make sure you have the Kex default in Core.ini [ApiConfigurations] set to "default=2" (WIN98). default=5 is incorrect. Your system seems to have mismatched msvcrt DLLs or other DLLs used by Sunbird that are causing the problem, not Sunbird itself. If your default is already at "2", please disable KernelEx extensions completely on Sunbird.

> After closing the error box another message appears saying that NEGOTIAT.DLL is missing.
This has to do with Directory Services. Maybe Sunbird is trying to access Outlook? This doesn't seem to be related to Kex or Kext.

> When using the new defs Sunbird and OpenOffice crash no matter if iphlpapi 3 or 4 is 'called'. Is this the correct term ?
"Called" is okay; "active", "used", "being used" might be better. The Active Context stubs seem to be the problem, not iphlpapi4--this is good.

>Commenting out the msvcr... sections seem to have no positive effect on my system.
Okay, thanks.

It now looks like iphlpapi4 is probably okay; the problem seems to be the ActCtx definition regression. I'll correct post #116

#125 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 11 January 2013 - 01:40 AM

View Postjumper, on 10 January 2013 - 06:34 AM, said:

@jds: Can you test using the Kexstubs method (clear the KnownDLLs entry and use the new definitions)? It looks like the global- and local-copy methods might be immune to something that is ailing the Kexstubs method.

Hi jumper, here are the results :

1) HoverIP : Seems OK.

2) SAP GUI : crashed with the following :

JAVAW caused an exception 03H in module KERNEL32.DLL at 0187:bff768a1.
Registers:
EAX=c0030900 CS=0187 EIP=bff768a1 EFLGS=00000246
EBX=00000000 SS=018f ESP=1818e604 EBP=1818e638
ECX=ffffff64 DS=018f ESI=7813220d FS=5c27
EDX=00000000 ES=018f EDI=00000000 GS=0000
Bytes at CS:EIP:
c3 cc cc 55 8b ec 56 57 68 c0 d4 fc bf e8 01 d9 
Stack dump:
78132225 bf4d735b 00000000 78130000 81daa5d8 0000000a 00000004 1818e608 1818e41c 1818e800 78138ad1 df4ede3b fffffffe 1818e810 78132337 78130000


3) In addition, Dependency Walker didn't run (no error message) and Open Office 3.2 produced an error R6034 when I double-clicked an XLSX file.

Then I commented out all the evil *ActCtx* functions in 'Kstub822.ini' and rebooted. Then everything worked OK.

Joe.

This post has been edited by jds: 11 January 2013 - 01:43 AM


#126 User is online   MiKl 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-December 11
  • OS:98SE
  • Country: Country Flag

Posted 11 January 2013 - 05:25 AM

Hi Jumper, my Sunbird installation must have been really screwed because after re-installing it works flawlessly with I4 and the new defs ! Thank you very much - sometimes I am to blind to see the obvious thing :blushing:

And after commenting out these 'evil' actctx-entries OpenOffice is working here again too !! Even with msvcr...'s active again.

This post has been edited by MiKl: 11 January 2013 - 05:42 AM


#127 User is online   schwups 

  • schwups
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 11-November 09
  • OS:ME
  • Country: Country Flag

Posted 11 January 2013 - 06:48 AM

Quote

It appears from the log that it actually loaded successfully on the first call to GetAdaptersAddresses, then failed on the second call--this could be because it follows a call to CreateActCtxW (that has caused trouble in the past) or something to do with how KernelEx hooks GetProcAddress. Try commenting out Kernel32:CreateActCtxW (and rebooting); if that doesn't help, please try the local-copy method.


Commenting out Kernel32:CreateActCtxW isn't enough (experiencing R6034 runtime errors). After commenting out all ActCtx api's 

ActivateActCtx=f2e
AddVectoredExceptionHandler=z2
CreateActCtxA=t1e
CreateActCtxW=t1e
DeactivateActCtx=f2e
FindActCtxSectionStringA=f5e
FindActCtxSectionStringW=f5e
ReleaseActCtx=f1

OpenOffice 3.2.1 works again.

µTorrent 2.0.4 doesn't. 

Kstub822.log:

= Iphlpapi.dll:GetAdaptersAddresses=>iphlpapi4: =

It works, if I commented out 

GetAdaptersAddresses=>iphlpapi4:
GetPerAdapterInfo=>iphlpapi4:

This post has been edited by schwups: 11 January 2013 - 07:03 AM


#128 User is online   schwups 

  • schwups
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 11-November 09
  • OS:ME
  • Country: Country Flag

Posted 13 January 2013 - 07:40 AM

Hello jumper,

you added winhttp.dll with four api's in the Kstub822 update (post 116) to experiment. I've good experience with this dll of XP in my system folder. It already supports WinHttpCloseHandle, WinHttpGetIEProxyConfigForCurrentUser, WinHttpGetProxyForUrl and WinHttpOpen. It makes no problems so far. The Foxit Reader updater of latest versions (5.3 and 5.4) needs it, the msi of the Flash Player versions 11.3 - 11.5 and Google Earth 6.0 to start, too.




#129 User is offline   TmEE 

  • Mega Drive Modding Master
  • PipPip
  • Group: Members
  • Posts: 267
  • Joined: 17-September 08
  • OS:98SE
  • Country: Country Flag

Posted 13 January 2013 - 11:55 AM

winhttp.dll from XP makes Open Modplug Tracker run too.

#130 User is offline   FlippX 

  • Junior
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 03-August 10
  • OS:none specified
  • Country: Country Flag

Posted 14 January 2013 - 05:04 PM

Hello,
please excuse my ignorance, but what is this?!?
Since KEX seems to be dead, or at least frozen, this sounds like it's successor...
But it does not sound like some kind of end-user software.
Is there something like a database sothat one just can install it resulting in more programs working/starting??

As far as I can see you have to be a programmer to use this, right?!
I am a graphical programmer if at all... But I do not really have an idea of windows file-types etc.. I guess I should in order to use this?!?


So can't you make something like an update for KEX out of this??? That would be the easiest (..at least for anyone but you guys.. ;) )

#131 User is offline   Foxbat 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 18-January 11
  • OS:none specified
  • Country: Country Flag

Posted 15 January 2013 - 01:44 AM

Have you read the first several posts?

#132 User is online   schwups 

  • schwups
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 11-November 09
  • OS:ME
  • Country: Country Flag

Posted 15 January 2013 - 09:19 AM

 I'm able to install Java 7 with the msi. Thanks to Kext. Also InterlockedPOPEntrySList is now supported. Of course it doesn't work. I think the main problem is VC++2010 - msvcr100 as with Gecko based browsers like Firefox 13 and higher. At the end of the setup a message says "Error loading jvm.dll" (...\bin\client). If I wait a while the message disappears and the setup finished successfully. The Java Control Panel doesn't open. It also says Error loading jvm.dll. Pluginchecker on Firefox 3.5.19 gives the same message.

The ImportPatcher generates this ini file for jvm.dll: Attached File  jvm.zip (543bytes)
Number of downloads: 6

After uninstalling remain some entries of Java 1.7 in the registry - HKLM ... Software/JavaSoft. I had to delete them manually! 

This post has been edited by schwups: 15 January 2013 - 09:32 AM


#133 User is online   PROBLEMCHYLD 

  • The Resurrector for old Windows OS
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,471
  • Joined: 07-October 05
  • OS:98SE
  • Country: Country Flag

Posted 16 January 2013 - 12:48 PM

View PostFlippX, on 14 January 2013 - 05:04 PM, said:

So can't you make something like an update for KEX out of this??? That would be the easiest (..at least for anyone but you guys.. ;) )
I asked this question a long time ago. I guess its easier to stub it out. I guess some people don't grasp the concept as easy as others. Kernel Ex is pretty stable for many users but has its bugs like any other unofficial projects on here. Adding stubs to the somewhat buggy Kernel Ex doesn't help but adds more bugs IMHO :unsure: Iguess it easier to try and cover up bugs (forget about them) than actually trying to fix them.

This post has been edited by PROBLEMCHYLD: 16 January 2013 - 12:50 PM


#134 User is online   MiKl 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 01-December 11
  • OS:98SE
  • Country: Country Flag

Posted 17 January 2013 - 06:33 AM

Hi Jumper,

in the last few days I have compared the performance of my system using i3 and i4 with SeaMonkey 2.0.14 and when using i4 there are some crashes of SM out of the blue doing nothing else than browsing.
Printing is also much more reliable because although I can print using i4 - SM crashes right after the printing is done !! So I went back to i3. (I also have the feeling that GetTcpTable2 improves stability very much !!)

I tried later versions of SM 2.0.14 as you have suggested before (thank you for looking into the matter !!) but they work very, very, very slowly and websites are not displayed correctly, mouse-over not working, etc.
So unless there is now some progress on KernelEx I think I am stuck with 2.0.14. :}

This post has been edited by MiKl: 17 January 2013 - 04:05 PM


#135 User is offline   togermano 

  • Member
  • PipPip
  • Group: Members
  • Posts: 105
  • Joined: 07-July 08

Posted 17 January 2013 - 08:32 AM

I got kernelex installed but not sure how to install these mods? can anyone help a noob out?

#136 User is online   schwups 

  • schwups
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 11-November 09
  • OS:ME
  • Country: Country Flag

Posted 17 January 2013 - 08:50 AM

View Posttogermano, on 17 January 2013 - 08:32 AM, said:

I got kernelex installed but not sure how to install these mods? can anyone help a noob out?


Look into the Kstub Spoiler on the first page. Or here (Api GetSystemWow64DirectoryA=z2e120 for Java 6 updates 32 and higher). 

This post has been edited by schwups: 17 January 2013 - 08:51 AM


#137 User is offline   togermano 

  • Member
  • PipPip
  • Group: Members
  • Posts: 105
  • Joined: 07-July 08

Posted 17 January 2013 - 08:59 AM

oh i see what happened the directions are now wrong because the updates change the ini file name

#138 User is online   schwups 

  • schwups
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 11-November 09
  • OS:ME
  • Country: Country Flag

Posted 17 January 2013 - 03:02 PM

View Posttogermano, on 17 January 2013 - 08:59 AM, said:

oh i see what happened the directions are now wrong because the updates change the ini file name


Please give us more details!  I don't understand what happened. What exactly have you done? Which directions are wrong, which ini file do you mean has changed?  Reinstall KernelEX if you run into problems.

This post has been edited by schwups: 17 January 2013 - 03:06 PM


#139 User is offline   jumper 

  • Masters HJ/TJ'er (back in training)
  • PipPipPip
  • Group: Members
  • Posts: 361
  • Joined: 21-January 11
  • OS:98SE
  • Country: Country Flag

Posted 17 January 2013 - 06:00 PM

I've happily followed all the activity here and in related topics over the last few days, but have been a bit busy. It seems there is much energy in 2013, and much to do!

I'll catch up on responding to each issue later tonight, but for now here are some new stub definitions to verify:
    ; Remote Access Service Functions (Windows)
    [RASAPI32.dll]
    RasGetAutodialAddressW=t5
    RasGetAutodialEnableW=t2
    RasGetAutodialParamW=t3
    RasSetAutodialAddressW=t5

    [;RASDLG.dll] --- see Lz32 ---
    RasDialDlgW=f4 ;needs error set in struct
    RasPhonebookDlgW=f3 ;needs error set in struct

    ; Authentication Functions (Windows)
    [Secur32.dll]
    AcquireCredentialsHandleW=t9
    DecryptMessage=t4
    EncryptMessage=t4
    GetComputerObjectNameW=z3e120
    GetUserNameExA=z3e
    GetUserNameExW=z3e
    InitSecurityInterfaceW=z0
    InitializeSecurityContextW=t12
    LsaEnumerateLogonSessions=t2
    LsaFreeReturnBuffer=t1
    LsaGetLogonSessionData=t2
    QueryContextAttributesW=t3


#140 User is offline   togermano 

  • Member
  • PipPip
  • Group: Members
  • Posts: 105
  • Joined: 07-July 08

Posted 18 January 2013 - 05:59 AM

View Postschwups, on 17 January 2013 - 03:02 PM, said:

View Posttogermano, on 17 January 2013 - 08:59 AM, said:

oh i see what happened the directions are now wrong because the updates change the ini file name


Please give us more details!  I don't understand what happened. What exactly have you done? Which directions are wrong, which ini file do you mean has changed?  Reinstall KernelEX if you run into problems.


the directions say to do this

modify contents= line in Core.ini to read:

contents=std,kexbases,kexbasen,Kstub730

but the version I downloaded was version 822 so I had to change kstub730 to kstub822

This post has been edited by togermano: 18 January 2013 - 05:59 AM


Share this topic:


  • 12 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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

  1. MiKl


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