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

Modified SYSDM.CPL 4.90.3001 for 98SE

- - - - -

  • Please log in to reply
115 replies to this topic

#76
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

I have extracted the contents of the Windows ME MSBACKUP package and compared all of the files inside to the versions in the 98SE .CABs. All of the files are the same, so differences in the MSBACKUP tool cannot be causing the error.

I'm in the process of installing 98SE without the Backup tool and will test the ME SYSDM.CPL with that install to see if I get the "other" weird icon.


EDIT:

I have done further experimenting and I have had some interesting results.

Without the Backup tool installed. I get the same Icon (19 SETUX/SETUPAPI) that PROBLEMCHYLD does.

HOWEVER, ONLY devices installed AFTER updating SYSDM.CPL get messed up Icons. If the devices were already installed while using the 98SE version, their Icons remain correct.

But, NOT ALL devices installed after updating SYSDM.CPL get messed up Icons. Only some.


@PC
Tested the special version I sent you again. On my machine it does NOT have the "not centered" bug. It should be good to go for your special case.

Edited by LoneCrusader, 11 November 2012 - 04:26 PM.



How to remove advertisement from MSFN

#77
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag
Is it possible to patch or hex the Win98 version of SYSDM.CPL, so that it can automate the installation of USB drivers?

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


#78
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

I have been unable to find any solution to this issue. :no:

The Icon bug is an obvious cosmetic flaw, and, I noticed that several strings pertaining to CONFIG.SYS that are present in the 98SE SYSDM.CPL have been removed from the ME SYSDM.CPL. It is unknown at this time whether this would cause further problems for users who need special CONFIG.SYS setups or use it to load drivers, but I suspect further problems may lie hidden. :ph34r:

There may be a way to make the 98SE version function in the same manner, but I have not managed to find it. I have tried various changes to the .INF files involved, trying to force an automated install, but nothing has worked. :}

#79
vicokoby

vicokoby
  • Member
  • 3 posts
  • OS:none specified
  • Country: Country Flag
To edit resources of 16 bit applications use ResScope,
I get good results with it, they can use the functions
Import/Export to facilitate the things.

ResScope Link:
http://www.resscope.com/


#80
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag

To edit resources of 16 bit applications use ResScope,
I get good results with it, they can use the functions
Import/Export to facilitate the things.

ResScope Link:

http://www.resscope.com/

Our problem is, what changes the icon and why? Once we figure that out, I think we won't have a problem afterwards. Thanks

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


#81
buyerninety

buyerninety

    Dude,¯\_{ö}_/¯ where's my avatar?

  • Member
  • PipPip
  • 139 posts
  • OS:none specified
  • Country: Country Flag
In Post#76, Lone Crusader said;
"HOWEVER, ONLY devices installed AFTER updating SYSDM.CPL get
messed up Icons. If the devices were already installed while using the 98SE
version, their Icons remain correct.
But, NOT ALL devices installed after updating SYSDM.CPL get messed
up Icons. Only some."
I wonder if this isn't due to Microsoft in LATER file version changing the
intended 'target icon' to a different icon, while leaving the 'target icon
number(ing)' the same. So say they want to use an updated or different icon,
they do some minor recoding but leave the name 'icon number19' in the
updated file...but now that physical 'icon number 19' is a totally different
icon (fulfilling a different purpose). Makes sense if you figure what older
icons you'd want to get rid of...tape drives going the way of the Dodo, any
tape drive icon would be the first to be replaced with a different icon
(but bearing the same number) as newer functions/hardware types come along.
Only a limited number of (numbered) icons...and if those newer files are used
in the older OS file setup, you might get the type of behaviour Lone
Crusader noted. All conjecture of course, regarding that tape drive icon prob...
...now for something a bit more concrete.
In Post #53, Drugwash said;
"That's not the Tape Device icon. Where on earth did this one come from?
Gosh, weirdness!" ...specifically referring to;
http://www.msfn.org/...attach_id=35483
OK, that weird icon bears a very close resemblance to this (look on right);
http://ptgmedia.pear...nks/03fig16.jpg
A Cardbus (/ PC Card type) icon.
Looking into the NEC uPD720101 controller, from here;
(you're going to have to highlight & paste all this URL)
http://members.drive...1dfc0515ec4[0]=226568&ids[1]=112648&ids[2]=80195&ids[3]=121609&ids[4]=505363&cid=716&model=CardBus+to+USB+2.0+Enhanced+Host+Controller
it appears THAT Controller gets used on e.g. NEC USB2 5-port PCI Card and
also PCI/Cardbus to USB 2.0 adapters. (Called on both a "USB 2.0 Enhanced
Host Controller". The download link also leads to a bit more file info). Pics:
http://webcache.goog...0&gbv=2&ct=clnk
http://webcache.goog...0&gbv=2&ct=clnk
.
So there may have been a wrong driver (/selected?), or the driver may have
something like a wrongly coded device ID, or maybe they simply folded a wrong
icon into the right driver pack... so that weird icon seen may be an unrelated fault.
.
(Ah, and for that help on that abbreviation elsewhere, Lone Crusader,)
gratias tibi ago Sapiens Forensis ... EHGO

Edited by buyerninety, 29 November 2012 - 11:28 AM.


#82
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

I wonder if this isn't due to Microsoft in LATER file version changing the
intended 'target icon' to a different icon, while leaving the 'target icon
number(ing)' the same. So say they want to use an updated or different icon,
they do some minor recoding but leave the name 'icon number19' in the
updated file...but now that physical 'icon number 19' is a totally different
icon (fulfilling a different purpose). Makes sense if you figure what older
icons you'd want to get rid of...tape drives going the way of the Dodo, any
tape drive icon would be the first to be replaced with a different icon
(but bearing the same number) as newer functions/hardware types come along.
Only a limited number of (numbered) icons...and if those newer files are used
in the older OS file setup, you might get the type of behaviour Lone
Crusader noted. All conjecture of course, regarding that tape drive icon prob...
...
So there may be a wrong driver in there, or the driver may have something
like a wrongly coded device ID, or maybe they simply folded a wrong icon into
the right driver pack... so that weird icon seen may be an unrelated fault.
.
(Ah, and for that help on that abbreviation elsewhere, Lone Crusader,)
gratias tibi ago Sapiens Forensis ... EHGO

Something that was changed about SYSDM.CPL between 98SE and ME has introduced a bug when the file is used with the older 98SE.


The index numbers of all the Icons related to this bug (and their DLL locations) have remained the same in both OS versions.

I believe the use of the Tape Icon is a random effect of the bug; I don't believe the Tape Utility has anything to do with it.

-The bug does not exist under ME, whether the Tape Backup utility is installed or not.
-However, the bug does exist under 98SE, whether the Tape Backup utility is installed or not. (Icon 19 instead)
-I have compared all of the files related to the Tape Utility from both systems. They are identical.

As far as "wrongly coded device ID," it would make sense if it only affected a specific piece or specific type of USB hardware. It also affects Mass Storage Devices which are installed with a generic driver and without specific ID's.


I believe there may be no solution to this issue. I can't see how we're going to fix a bug that we can't pin down, especially since we don't even have a program that can be used to work on .CPL files. Without knowing what was changed, we're playing Russian Roulette trying to hit on the issue.


:angel
es grata
EHGO? = Entente Halieutique du Grand Ouest??
:lol:

#83
buyerninety

buyerninety

    Dude,¯\_{ö}_/¯ where's my avatar?

  • Member
  • PipPip
  • 139 posts
  • OS:none specified
  • Country: Country Flag
"So there may have been a wrong driver (/selected?), or the driver may have
something like a wrongly coded device ID, or maybe they simply folded a wrong
icon into the right driver pack... so that weird icon seen may be an unrelated fault."

THAT above para referred only to the weird icon seen for the NEC USB 2.0 Enhanced
Host Controller... but I understand you're asserting that the bug is causing both...
Ahhh, OK both the two examples we've seen so far, acted to give an incorrect icon
for a USB "Host Controller" (example "Intel 82371AB/EB PCI to USB Universal Host
Controller" [a USB 1.1 Controller] and example "NEC USB 2.0 Enhanced Host Controller",
...mmm HEY, with the NEC Host Controller example, it had an 82371AB/EB sitting right
above it in the Device Manager display, but THAT 82371AB/EB DID show its correct icon!

{...Oh, it was a line of Latin, so I figured you would get it through
googling "EHGO latin"
...Haha, "Et Hoc Genus Omne", (colloquially) ..'and all that sort of thing'.}

Edited by buyerninety, 29 November 2012 - 04:16 PM.


#84
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

THAT above para referred only to the weird icon seen for the NEC USB 2.0 Enhanced
Host Controller... but I understand you're asserting that the bug is causing both...
Ahhh, OK both the two examples we've seen so far, acted to give an incorrect icon
for a USB "Host Controller" (example "Intel 82371AB/EB PCI to USB Universal Host
Controller" [a USB 1.1 Controller] and example "NEC USB 2.0 Enhanced Host Controller",
...mmm HEY, with the NEC Host Controller example, it had an 82371AB/EB sitting right
above it in the Device Manager display, but THAT 82371AB/EB DID show its correct icon!

Yes, but the bug also affects USB Mass Storage Devices. I haven't posted a screenshot of this, but I encountered it in one of my tests. It's not just limited to Host Controllers. :}

{...Oh, it was a line of Latin, so I figured you would get it through
googling "EHGO latin"
...Haha, "Et Hoc Genus Omne", (colloquially) ..'and all that sort of thing'.}

Ah yes, lol, I should have made the Latin connection since the previous text was in Latin. :blushing:

#85
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag
Is anyone going to try and pursue this or is it a dead issue. I have been looking into it but can't find the bug :(

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


#86
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

Is anyone going to try and pursue this or is it a dead issue. I have been looking into it but can't find the bug :(

Some "deep" investigation revealed that Microsoft made changes to how USB devices are enumerated at a point between 98SE and ME.

"Files from that period" :sneaky: might possibly be usable, but would be purely experimental, still suffer from the removed CONFIG.SYS content that I mentioned, and would not have any of the fixes applied by later HotFixes. :}

Personally I've written this off unless someone can figure out what Microsoft changed about the enumeration of USB devices and apply it to the proper 98SE HotFix version.

#87
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

I have discovered another POTENTIAL solution to the problem this project was supposed to address. At the moment, it is buggy, requires further testing, and may be impractical to implement as part of a "project."

The purpose of adding the Windows ME SYSDM.CPL was the fact that it will automatically install the drivers for USB & USB Storage devices WITHOUT prompting the user to select a driver.


I have found a way to cause this auto-installation under 98SE, but it suffers from a strange bug. :unsure:


If the following conditions are met, then 98SE will automatically install the drivers for a USB Flash Drive:

-USBSTOR.INF is placed in WINDOWS\INF
-The SPECIFIC VID&PID of the Flash Drive is listed in USBSTOR.INF


EDIT 6-20-2013
LATER FOUND THAT THIS BUG HAPPENS UNDER VIRTUAL MACHINES ONLY.

Now, here's the problem. :(

If a Flash Drive has been installed using this method during a Windows session, then any subsequent attempt to install another Flash Drive that does NOT have its VID&PID specified in the INF (and therefore uses the Generic INF lines) will cause a "You Must Restart" dialog along with a Yellow Exclamation Mark error on the "USB Mass Storage Device" entry in the Device Manager.

Rebooting before attempting to install a "generic" Flash Drive will prevent this bug.

EDIT 6-20-2013


So, theoretically it is possible to achieve the auto-installation without the ME SYSDM.CPL. However, it would require an enormous amount of work creating a comprehensive INF list of VID's & PID's that would need to be continually updated with new Device entries. :wacko:

Edited by LoneCrusader, 19 June 2013 - 10:29 PM.


#88
TmEE

TmEE

    Mega Drive Modding Master

  • Member
  • PipPipPip
  • 361 posts
  • OS:98SE
  • Country: Country Flag
I wish I had more time and some extra knowledge on the inner workings of these things.... such stuff should not be easy to hack it, just a compare and skip if the program is written in any sane way (though I kind of doubt it is the case).
Posted Image Mida sa loed ? Nagunii aru ei saa ;)

#89
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 110 posts
  • OS:98SE
  • Country: Country Flag

So, theoretically it is possible to achieve the auto-installation without the ME SYSDM.CPL. However, it would require an enormous amount of work creating a comprehensive INF list of VID's & PID's that would need to be continually updated with new Device entries. :wacko:


I have something like this working on my systems.
I have a German sysdm.cpl (4.10.2224, 09.12.2000) active. It has the same size as the original so I think it has not been drastically patched/changed.
It's been a while but IIRC the key was using usbstor.sys (4.90.3000.1) not higher (!!) and the 50 KB big usbstor.inf taken from the WUPG98 package.
So far, all USB devices had been installed without any problems - but on the other hand, I have only 10 or so :blushing:

When I find the time I will test it with the original sysdm.cpl from 1999.

Best, Mikl

#90
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

I wish I had more time and some extra knowledge on the inner workings of these things.... such stuff should not be easy to hack it, just a compare and skip if the program is written in any sane way (though I kind of doubt it is the case).

Microsoft made changes to the way USB devices are detected and enumerated between Windows 98SE and Windows ME. (Info taken from MS documentation.)

I have something like this working on my systems.
I have a German sysdm.cpl (4.10.2224, 09.12.2000) active. It has the same size as the original so I think it has not been drastically patched/changed.
It's been a while but IIRC the key was using usbstor.sys (4.90.3000.1) not higher (!!) and the 50 KB big usbstor.inf taken from the WUPG98 package.
So far, all USB devices had been installed without any problems - but on the other hand, I have only 10 or so :blushing:

When I find the time I will test it with the original sysdm.cpl from 1999.

Best, Mikl

I just want to be sure we're on the same page here... :unsure:

The USB devices will install without a "problem" with the 98SE SYSDM.CPL's. The only difference with the ME SYSDM.CPL is that it will automatically install a driver for a USB Storage device, without prompting the user. The 98SE versions will prompt the user to search for and select a driver, even when it has the driver in WINDOWS\INF already. (Unless the device VID&PID is in the INF, as I pointed out.)

Assuming we are on the same page, it should be interesting to check out the USBSTOR.INF from WUPG98. :thumbup

Edited by LoneCrusader, 05 March 2013 - 10:09 PM.


#91
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag

Microsoft made changes to the way USB devices are detected and enumerated between Windows 98SE and Windows ME. (Info taken from MS documentation.)

Could you please point to the source of documentation? I'd like to see if there's something useful in there.

I should probably get my head back to working on that NE editor, since there's none out there to work (correctly and fully) under 9x, at least in my personal experience. But anyway, it won't do anything other than changing the GUI - no actual code editing. So if there's some unwanted changes from 98SE version to ME version, that'd have to fall into much more capable hands.:}


#92
MiKl

MiKl

    Member

  • Member
  • PipPip
  • 110 posts
  • OS:98SE
  • Country: Country Flag

Assuming we are on the same page, it should be interesting to check out the USBSTOR.INF from WUPG98. :thumbup


O.K. - I have done some testing and it looks like as if the sysdm.cpl I used was indeed based on the ME one modified/patched to look like the 98SE one :blushing:
So, sorry for the false alarm ...

But while testing I had these two (under slightly different names) active at the same time and I was wondering if this would not be a work-around ??
I will keep this setup for a few days and see if there are any issues.

#93
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag
Good to see there is still interest in this. Its it possible to hex or patched the Win98 version by finding the right offset. General Idea

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


#94
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

@ Drugwash & PROBLEMCHYLD

I have sent you a PM.

#95
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag

I have been unable to find any solution to this issue. :no:

The Icon bug is an obvious cosmetic flaw, and, I noticed that several strings pertaining to CONFIG.SYS that are present in the 98SE SYSDM.CPL have been removed from the ME SYSDM.CPL. It is unknown at this time whether this would cause further problems for users who need special CONFIG.SYS setups or use it to load drivers, but I suspect further problems may lie hidden. :ph34r:

There may be a way to make the 98SE version function in the same manner, but I have not managed to find it. I have tried various changes to the .INF files involved, trying to force an automated install, but nothing has worked. :}

I'm somewhat lost here :blink: What would the CONFIG.SYS have to do with USB? I'm just curious. Are the references needed?

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


#96
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

I'm somewhat lost here :blink: What would the CONFIG.SYS have to do with USB? I'm just curious. Are the references needed?

CONFIG.SYS has nothing to do with USB. ;)

The reason I feel the removal of the CONFIG.SYS references may be important is that since Windows ME does not use CONFIG.SYS, using the ME version of SYSDM.CPL may break the use of CONFIG.SYS on 98SE.

This would need to be tested thoroughly.. I don't have any machines that use special CONFIG.SYS entries, but there may be many users who do, especially on older hardware.

#97
go98

go98

    Newbie

  • Member
  • 22 posts
  • OS:none specified
  • Country: Country Flag
Somebody mentioned hex-editing sysdm.cpl...it's should be easy with the right tool since a .cpl file is exactly the same structure as a .dll file (which in turn differs just 1 bit from an .exe file)

:whistle:

#98
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

  • MSFN Sponsor
  • 810 posts
  • OS:98SE
  • Country: Country Flag

Donator

it's should be easy

:w00t: :lol:

Sure it is, if you know what you need to hex edit in the first place! :whistle:

#99
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag
Hex-editing is easy anyway, but here we have a little more than that, namely adding/removing/modifying resources, such as controls in dialogs, strings and even icons, bitmaps and other, for those wanting a modern look. None of the existing tools I know does the perfect job - not even M$'s Visual Studio 6. So we need a new, specially designed tool. I started to build one, but left it aside, as I got sidetracked by other issues - who knows when (or even if) I manage to pull through.

If anybody knows of such existing tool that can specifically work with 16-bit .cpl files and is Win9x compatible, other than the ones already mentioned throughout this topic, please speak (or send PM).

#100
go98

go98

    Newbie

  • Member
  • 22 posts
  • OS:none specified
  • Country: Country Flag


it's should be easy

:w00t: :lol:

Sure it is, if you know what you need to hex edit in the first place! :whistle:


Haha, hex-editing is even trivial. I read some hesitation here because it's a .cpl file. Somebody said it could be renamed to .dll, which is the correct way to do (identical structure). Then you can work with it with your tool of choice.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN