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

minf - minimize an INF file

- - - - -

  • Please log in to reply
11 replies to this topic

#1
jumper

jumper

    2014 All-American Masters HJ'er

  • Member
  • PipPipPip
  • 498 posts
  • Joined 21-January 11
  • OS:98SE
  • Country: Country Flag

minf (minimize INF file)
latest beta: Attached File  minf.04.exe   4KB   84 downloads

Done:
  • Convert UTF-16 (Unicode) to UTF-8 (ASCII)
  • Abbreviate lengthy section names
  • Remove comments and white space
  • Minimize variable names
To do:
  • Minimize section names
  • Remove non-9x sections
  • Create 9x sections from 2k/XP if missing
Why?
  • To fix poorly tested Win9x installer information (INF) files.
  • Enable 2K/XP WDM drivers to possibly work in 98/SE/ME.
  • Addresses issues raised by jds and jaclaz in:View Post Driver compatibility issues for W9X
Suggested usage:

Create a shortcut to minf in your Windows SendTo folder
and send INF files to it using the right-click context menu.


 
Attached File  minf.01.exe   3.5KB   6 downloads implements these first two features:
  • Convert UTF-16 (Unicode) to UTF-8 (ASCII)
    If the first two bytes of the file are FF FE or FE FF, those two bytes plus every other byte thereafter are removed.
  • Abbreviate lengthy section names
    All section names are checked for length. Any over 28 characters are abbreviated to 10..16 and all references patched.
Attached File  minf.02.exe   4KB   5 downloads adds support for:
  • Remove comments and white space
    All comments and (non-quoted) white space are removed and new-lines reduced to a single line-feed.
Attached File  minf.03.exe   4KB   11 downloads adds:
  • Minimize variable names
    All variable names are reduced to the range A-Z,A0-ZZ and references patched.
    A 75KB test file was reduced to 50KB!
Attached File  minf.04.exe   4KB   84 downloads adds:

+ If any section names are squashed to 28, the original size is now reported.
- Files not terminated with a line feed are now handled successfully.

To do:
  • Minimize section names
    It should be possible to do something similar to variable names, but decoration parsing will be required.
  • Remove non-9x sections
    Once I fully understand section naming and decorating conventions, it should be possible to completely remove sections not needed by Win9x.
  • Create 9x sections from 2k/XP if missing
    If no Win9x sections exist, an attempt could be made to adapt a 2K or XP section.

Edited by jumper, 22 July 2013 - 10:44 PM.

Design feedback requested:
IHAtool - IpHlpApi tester; call various functions and report results
--status-> framework is solid; 22 api's fully supported; preview release coming soon
ComDlg32 wrapper - ComDlgEx meets IpHlpApi wrapper
--status-> PrintDlgExW working in latest SumatraPDF 8^)
Future projects: ImportPatcher40 - dialog interface; Kexter - IP40+Ktree+Kexstubs


How to remove advertisement from MSFN

#2
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,531 posts
  • Joined 07-October 05
  • OS:98SE
  • Country: Country Flag
:thumbup This tool will come in handy converting WinXP inf to Win9X. Thanks jumper :thumbup

Believe God is the Alpha and Omega.
Believe Jesus Christ died for our sins.
Repent for your sins now or there will be
BLOOD

The Path to God


U98SESP3 03-11-2013


#3
TmEE

TmEE

    Mega Drive Modding Master

  • Member
  • PipPipPip
  • 363 posts
  • Joined 17-September 08
  • OS:98SE
  • Country: Country Flag
Whoa, this is some nice stuff :D

I wonder if its worth to try it on some 2K/XP graphics drivers.....?
Posted Image Mida sa loed ? Nagunii aru ei saa ;)

#4
loblo

loblo

    Oldbie

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

I wonder if its worth to try it on some 2K/XP graphics drivers.....?

I don't think so as display drivers aren't WDM drivers AFAIK and they require vxd and 16bit drv files for working on a 9x system, both of them being non-existent in 2K/XP only drivers.

#5
TmEE

TmEE

    Mega Drive Modding Master

  • Member
  • PipPipPip
  • 363 posts
  • Joined 17-September 08
  • OS:98SE
  • Country: Country Flag
But 98 does support WDM... ? or it won't work for video cards ?
Posted Image Mida sa loed ? Nagunii aru ei saa ;)

#6
maximilliangreat

maximilliangreat
  • Member
  • 4 posts
  • Joined 19-September 11
  • OS:none specified
  • Country: Country Flag

Create 9x sections from 2k/XP if missing

jumper, I'm really waiting for this feature. Keep doing a good work!

#7
loblo

loblo

    Oldbie

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

But 98 does support WDM... ? or it won't work for video cards ?

Display drivers are kernel mode drivers not WDM ones and this applies to 2K/XP as well. AFAIK there is no way to use 2K/XP display drivers on 98/ME.

#8
TmEE

TmEE

    Mega Drive Modding Master

  • Member
  • PipPipPip
  • 363 posts
  • Joined 17-September 08
  • OS:98SE
  • Country: Country Flag
aha :)

...the more you know ^^

but sound stuff is still applicable for the most part I would guess
Posted Image Mida sa loed ? Nagunii aru ei saa ;)

#9
loblo

loblo

    Oldbie

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

but sound stuff is still applicable for the most part I would guess

Yeah, soundcards drivers and USB devices drivers are candidates I can think of but there is no guarantee all will work just because it has become possible to install them, some may and some other may not.

#10
maximilliangreat

maximilliangreat
  • Member
  • 4 posts
  • Joined 19-September 11
  • OS:none specified
  • Country: Country Flag

Yeah, soundcards drivers and USB devices drivers are candidates I can think of


Network cards probably should work too.

#11
MrTCNC

MrTCNC
  • Member
  • 1 posts
  • Joined 25-April 12
  • OS:98SE
  • Country: Country Flag
Absolutely incredible! I can't wait to try this for the UAA HD bus > many thanks and kudos to all those wonderful, brilliant folks who develop software like this so that people like me can use it to perpetuate Windows 98 :thumbup

#12
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,369 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag

Absolutely incredible! I can't wait to try this for the UAA HD bus > many thanks and kudos to all those wonderful, brilliant folks who develop software like this so that people like me can use it to perpetuate Windows 98 :thumbup

??? Not gonna happen! No drivers for that will EVER work on 9x! AFAIK, that's the case so you HAVE to disable OnBoard Sound and insert a an add-in card (NOT HD, of course).

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users