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

Kext: DIY KernelEx extensions

- - - - -

  • Please log in to reply
291 replies to this topic

#276
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 783 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

Hi Loblo,

 

I have these 'Get....' in my kstub:

GetFileSizeEx=f2e120 ;D3DX9_43.dll 9.29.952.3111
GetGeoInfoA=z5e
GetGeoInfoW=z5e
GetSystemRegistryQuota=z2e
GetSystemWow64DirectoryA=z2e120
GetSystemWow64DirectoryW=z2e120
GetUserGeoID=t1
GetVolumeNameForVolumeMountPointA=z3e
GetVolumeNameForVolumeMountPointW=z3e

 

Are there more useful ones to add besides GetLogicalProcessorInformation ??

 

Thx, MiKl

 

It's best IMO to add function definitions only as the need for them arises.




How to remove advertisement from MSFN

#277
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 133 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Hi Jumper and everybody else,

 

while browsing the internet I stumbled over an app that might be useful !! (But I am sure this is just old news ...)

However, here is the link:

http://www.steelbytes.com/?mid=47



#278
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 133 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Sorry if this has been discussed before but I am wondering if dll's from the WINE project can be used ??

Especially ntdll.dll looks promising !

http://source.winehq...eAPI/ntdll.html

http://source.winehq...eAPI/ole32.html

http://source.winehq...I/advapi32.html



#279
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,329 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

Using the sources to update KernelEx would be a better idea. But a question arises: when will we stop transforming 9x into NT?



#280
M()zart

M()zart

    Member

  • Member
  • PipPip
  • 287 posts
  • Joined 17-June 08

Using the sources to update KernelEx would be a better idea. But a question arises: when will we stop transforming 9x into NT?

I think, 98 should be considered 98 while it can run all the applications, compatible with Windows 98 natively. So we should stop only when we break compatibility with older applications. Unfortunately real life shows that we stop much earlier - when developers lose interest.

#281
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,329 posts
  • Joined 21-June 06
  • OS:98SE
  • Country: Country Flag

Such topic could easily extend inedefinitely. I see people always asking for compatibility with newer applications and can't stop wondering how many of the older, native-9x ones, are still being used. People always want 'the newest', 'the latest' just to follow the trend, not because they really need that.

 

Of course, there are those 'new standards' that keep being 'upgraded' from time to time for the sole reason of offering leverage to commercial programmers to build and sell new versions of their applications. That's an ever turning wheel, driven by the current economy model at global scale.

 

Then, software is more and more tied to hardware, which gets upgraded for the very same reason as above. Hardware upgrade requires software upgrade, then software upgrade requires hardware upgrade and so on and so forth, while choice has been taken from us constantly until it all became "my way or the highway".

 

At some point we did stop. We had to stop, we can't pursue this madness as much as we'd try. This is a neverending game of greed and power.

 

As I said, we could talk on this topic indefinitely, but this is not the right place and we wouldn't get to an unanymous conclusion anyway. Therefore I stop here, apologyzing for the off-topic.

 

(fixed small grammar issue)


Edited by Drugwash, 25 June 2014 - 06:45 AM.


#282
rloew

rloew

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,134 posts
  • Joined 30-May 05
  • OS:98SE
  • Country: Country Flag
Unfortunately you can't just add NT Functionality without risking 9X Functionality. Many NT API Functions are different in ways that are not compatable. I have even seen Calling conventions changed such as FASTCALL to STDCALL.

This makes it virtually impossible to fully support both.
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.

#283
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 133 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

MediaPlayerClassic-Home Cinema (1.6.0.4014) is asking for export-msvcrt.dll: _wsplitpath_s so I added this stub (without def) to kext but my system is then not booting properly. I also tried import-patching the mpc.exe with a msvcrt.dll that has this export function (7.0.6001.18000) but this dll is either too new/incompatible or I am still not doing this patching correctly  :blushing: 

It would be great if some of you could look into this. Thx, MiKl



#284
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 783 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

MediaPlayerClassic-Home Cinema (1.6.0.4014) is asking for export-msvcrt.dll: _wsplitpath_s so I added this stub (without def) to kext but my system is then not booting properly. I also tried import-patching the mpc.exe with a msvcrt.dll that has this export function (7.0.6001.18000) but this dll is either too new/incompatible or I am still not doing this patching correctly  :blushing:

It would be great if some of you could look into this. Thx, MiKl

 

Even if you'd manage to overcome this (presumably) Vista and above dependency, you'd encounter many other problems with recent versions of MPC-HC. I managed to get earlier builds to run, using ReactOS uxtheme.dll and some other hacks, but none were fully functional, the best I got was video playback with no audio. Last good MPC-HC version is probably 1.5.1.2903 which most certainly can be configured to use latest Lavfilters (v. 0.63 as of this writing).

 

I think this topic should be stickied btw.


Edited by loblo, 09 October 2014 - 12:49 PM.


#285
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 133 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Thanks Loblo, I didn't even thought about mpc-hc for quite a long time because I used vlc more and more but the vlc-team must have changed something drastically because on their last nightly builds (both in the 2. and 3. line) the gui does not show up ! This may be fixed (for us) when they reach a stable release but I have not much hope.

So, I have downloaded the latest Lavfilters - unpacked & upxed - but I am not sure what to do next. The included install .bat's do not work and I could not manually install the dll's either. What am I missing ? Thx !!

 

Update: install_audio.bat from LAV 0.63 worked on a different PC now. Also install_splitter.bat but from an old version (0.60.1)


Edited by MiKl, 10 October 2014 - 06:00 AM.


#286
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 783 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

LAV 0.63 works absolutely fine here (splitter, audio and video)  so I guess you might be missing some definitions in the kernel32 section of your kstub822.ini, LAVVideo appears to require all this (probably not the best/most optimal definitions  but it works):

 

GetLogicalProcessorInformation=f2
GetNumaHighestNodeNumber=f1
InitializeSListHead=f1
InterlockedFlushSList=f1
InterlockedPopEntrySList=f1
InterlockedPushEntrySList=f2
QueryDepthSList=f1

 

Also, you may want to try processing the bundled dlls with jumper's gccfix.exe instead of UPXing them. (The LAV ax files don't require either as the are compiled with MSVC.)


Edited by loblo, 10 October 2014 - 06:24 AM.


#287
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 133 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Thx Loblo, I did not had the GetNuma-def in my kstub822.ini !! I could install LavFilters but it was not possible to configure mpc-hc to use it. Only the very old mpc 6.4.9.1 used lav filters.



#288
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 783 posts
  • Joined 12-January 10
  • OS:ME
  • Country: Country Flag

Sure you can as I just did it. They don't play too well together however, I couldn't pause the video and audio was choppy. Unfortunately those bugs/incompatibilities will never be fixed so I'd recommend to use latest/current Zoom Player (v9.41 as of this writing) with LAV as they work flawlessly together. PotPlayer's also an option, although running the latest builds requires editing one import by ordinal from shell32.dll in potplayer.dll (can be done with Detect It Easy).

 

And in case someone still wouldn't manage to get LAV running, it's also necessary to replace msvcrt.dll by msvcr70.dll.



#289
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 133 posts
  • Joined 01-December 11
  • OS:98SE
  • Country: Country Flag

Maybe on ME it worked but mpc-hc kept using its internal filters no matter what I tried. Only the old 6.4.9.1 played files and actually used lav filters.

However, I hope the gui problem with vlc can be fixed anytime soon.



#290
CamTron

CamTron

    XPocalypse Survivor

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

I've gotten Minetest 0.4.9 (open-source Minecraft clone written in C++) to work on Windows 98 SE. You must add SetConsoleDisplayMode=r1s3 to [Kernel32.dll]. Grab Wldap32.dll from XP and place it in the same directory as minetest.exe. Set compatibility mode to Windows 2000. I tried playing around with minetest.conf, and setting the video driver to direct3d9 seems to be the one with the best performance. The only issue I've found is that the land appears red, which is most likely due to my ancient GeForce2 graphics card lacking the proper shader support. You can disable shaders in the game, but this makes the game run very slowly. I tried to run Minetest 0.4.10, but it crashed upon launch.


Edited by CamTron, 22 December 2014 - 12:29 PM.

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

#291
farfigs11

farfigs11

    Junior

  • Member
  • Pip
  • 60 posts
  • Joined 29-October 12
  • OS:98SE
  • Country: Country Flag

Huh? Oh, that's... odd, I'm sure I set it to that yesterday.... I'll try again later. Thanks! ;)

 

Oh, on the subject, if a game wants d3dx9_43.dll, Can I just rename an older dll or can I just use this dll? I haven't looked at directx-based software in ages....

With Hunting Unlimited, I've found a d3dx9_42.dll file in the game's folder and renamed it to 43. Worked fine after that change.



#292
CyberyogiCoWindler

CyberyogiCoWindler

    Junior

  • Member
  • Pip
  • 81 posts
  • Joined 04-September 10
  • OS:98SE
  • Country: Country Flag
WinPcap installer fails on Win98SE (NSIS)

I am trying to install "URL Snooper 2.37.01" on Windows 98SE (German language) with KernelEx 4.5.120. The program depends on the WinPcap driver and comes with versions 4.1.3 and 4.0beta2 - the latter is claimed to be compatible for Windows 98. Unfortunately both refuse to install.

Details see here:
http://www.msfn.org/...ails-on-win98se

The WinPCap website claims the last version supporting Win98SE were WinPcap 3.1 and WinPcap 4.0beta2.
http://www.winpcap.o...all/default.htm

However when I attempt to install the self-extracting EXE of 4.0beta2, its NSIS installer exits with the error requester "This version of Windows is not supported by WinPcap 4.0 beta 2. The installation will be aborted."

When I tried to install version 3.1, the NSIS installer exits with the even stranger error popup "WinPcap 3.1 can be installed on 32-bit x86 systems only. The installation will be aborted" My CPU is an AMD K6-3+, which is definitely 32 bit x86 compatible.

When I debug the WinPcap 4.0beta2 installation process in Dependency Walker, before the popup it throws the error: "GetProcAddress(0xBFF70000 [e:\windows\system\KERNEL32.DLL], "GetUserDefaultUILanguage") called from "h:\download\utilities\videos downladen\winpcap\4.0BETA2-WINPCAP.EXE" at address 0x00405D06 and returned NULL. Error:" Apparently the NSIS installer is incompatible with Windows 98 because the function GetUserDefaultUILanguage in kernel32.dll exists only since Windows 2000. Also KernelEx settings don't seem to change this. So I added in kstub822.ini to the "[Kernel32.dll]" section the following line to simulate it:

[Kernel32.dll]
...
GetUserDefaultUILanguage=r0407 ; German language (added by =CO=Windler)
...

I tried this also with "e0", which is apparently supposed to suppress an error flag.

[Kernel32.dll]
...
GetUserDefaultUILanguage=r0407e0 ; German language (added by =CO=Windler)
...
But this doesn't do anything. Even DependencyWalker still shows the same "returned NULL" error. Is my entry wrong or simply ignored by the installer?

- Is there a proper way to simulate GetUserDefaultUILanguage with Kext?

Edited by CyberyogiCoWindler, 28 January 2015 - 08:03 PM.

MAY THE SOFTWARE BE WITH YOU!

*============================================================================*
CYBERYOGI Christian Oliver(=CO=) Windler
(teachmaster of LOGOLOGIE - the first cyberage-religion!)
!
*=============================ABANDON=THE=BRUTALITY==========================*
{http://weltenschule.de/e_index.html }





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users