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

#1
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

Maximus Decim Native USB ver.3.6
...
What's new?
* SYSDM.CPL 4.90.3001 - for auto install driver at insertion of the new flash devices
...

I have modified the Windows ME SYSDM.CPL 4.90.3001 to correct a few cosmetic errors when it is used under 98. Not perfect yet, but what I have changed so far seems fine. Need some testers and maybe someone can fix the one thing I've not been able to? :unsure:

Changes so far:
- Fixed the General tab under System to show "98" and "Second Edition" instead of "Me"
- Removed System Restore disk space slider bar from the File System / Hard Disk dialog.
- Fixed all Strings to read "Windows 98" instead of "Windows Millennium Edition"

What needs fixing:
- Remove "Disable System Restore" option from the Troubleshooting tab.
(everything I've tried messes up the rest of the Dialog)

Comments anyone?

EDIT:
Removed old link.

Edited by LoneCrusader, 06 November 2012 - 04:39 PM.



How to remove advertisement from MSFN

#2
TmEE

TmEE

    Mega Drive Modding Master

  • Member
  • PipPipPip
  • 361 posts
  • OS:98SE
  • Country: Country Flag
I'll report my findings tomorrow evening.
Posted Image Mida sa loed ? Nagunii aru ei saa ;)

#3
jumper

jumper

    2014 All-American Masters HJ'er

  • Member
  • PipPipPip
  • 474 posts
  • OS:98SE
  • Country: Country Flag

What needs fixing:
- Remove "Disable System Restore" option from the Troubleshooting tab.
(everything I've tried messes up the rest of the Dialog)

Three ideas:
  • Blank out the text: "Disable System &Restore." -> " "
  • Reposition the text box outside of the dialog box / property sheet: (999, 999)
  • Resize the text box to something very small like: (1, 1)
The more I think about it, removing the checkbox is probably the issue. Repositioning (method 2) should work visually, but will probably cause a "hole" in the tabbing sequence that will need addressing....
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

#4
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag
Remove the WS_VISIBLE (0x10000000) style and that'd do - no tab gap, no errors.

Anyone can recommend a good, Free/Open-source NE editor for such 16-bit libraries? I've edited my CPL about 6 years ago and forgot which tool I used. Could've even been some shareware in trial mode, at the time, but I'd like to avoid such things now. Got no time (and enough knowledge) to build a tool from scratch right now.

#5
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 755 posts
  • OS:ME
  • Country: Country Flag

Anyone can recommend a good, Free/Open-source NE editor for such 16-bit libraries?

Free/open source: Open Watcom Resource Editor and Dialog Editor
Shareware: eXescope
Commercial: Microsoft Visual C++

That's about all there is I think.

Edited by loblo, 04 November 2012 - 06:22 PM.


#6
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

Three ideas:

  • Blank out the text: "Disable System &Restore." -> " "
  • Reposition the text box outside of the dialog box / property sheet: (999, 999)
  • Resize the text box to something very small like: (1, 1)
The more I think about it, removing the checkbox is probably the issue. Repositioning (method 2) should work visually, but will probably cause a "hole" in the tabbing sequence that will need addressing....

eXeScope is the only tool I have that will open SYSDM.CPL so I'm limited to what it allows me to do :}

I can't edit the text, unless I tried directly hex-editing it...
Repositioning might work, if one could make sense of the positioning coordinates for the other options. Many of them are negative. :blink:
I can't resize the box because it doesn't seem to be treated as a text box.

Remove the WS_VISIBLE (0x10000000) style and that'd do - no tab gap, no errors.

A bit over my head, I'm no programmer. :ph34r:
eXeScope has a checkbox for "Visible" on this item, but it's already not checked by default.
(Tried this because it worked for the slider bar on the other dialog.)


Thanks for the help guys.. any more ideas?

#7
dencorso

dencorso

    Adiuvat plus qui nihil obstat

  • Supervisor
  • 5,845 posts
  • OS:98SE
  • Country: Country Flag

Donator

Nirsoft WinExplorer allows one to change in memory the already running program. While it does not allow one to change the executable in the disk (which would then be permanent) it sure allows one to easily test Drugwash's idea and confirm whether it works as intended.
[off topic] yes, I love split infinitives... they remind me of watching Star Treck on TV[/off topic]

#8
bizzybody

bizzybody

    Advanced Member

  • Member
  • PipPipPip
  • 348 posts
Could WinMe's System Restore be ported to 98SE?

#9
dencorso

dencorso

    Adiuvat plus qui nihil obstat

  • Supervisor
  • 5,845 posts
  • OS:98SE
  • Country: Country Flag

Donator

Could WinMe's System Restore be ported to 98SE?

Posted Image You've just earned the trophy for most off-topic post of the month! :whistle:

#10
jumper

jumper

    2014 All-American Masters HJ'er

  • Member
  • PipPipPip
  • 474 posts
  • OS:98SE
  • Country: Country Flag

Thanks for the help guys.. any more ideas?

MSVC++ 5 was able to edit the NE file. I learned the hard way that Save crashes, but Save As works.

I was able to disable the Visible and Tabbed options on "Disable System &Restore." and shorten the group box and dialog box to match the 98se version. I also bumped the version to .3002 (in two places).

The only down-side seems to be that VC5 can only edit by adding a modded resource without removing the original data, so the file is 7KB larger. :(

Temporary attachment: - SYSDM.CPL

 Edit:

I was also able to save as .rc and .res:
Attached File  Sysdm.rc.res.7z   47.65KB   11 downloads - sysdm.rc, sysdm.res

Here's the most relevant part of the rc code:
1742 DIALOG DISCARDABLE  0, 0, 256, 133
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | 
    WS_SYSMENU
CAPTION "Troubleshooting"
FONT 8, "MS Sans Serif"
BEGIN
    ICON            605,1736,7,7,21,20,WS_GROUP
    LTEXT           "It is recommended that only advanced users and system administrators change these settings.",
                    1737,36,7,193,19
    GROUPBOX        "Settings",1738,7,33,241,92
    CONTROL         "Disable new file &sharing and locking semantics.",1750,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,24,48,204,10
    CONTROL         "Disable long &name preservation for old programs.",1749,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,24,60,204,10
    CONTROL         "Disable &protected-mode hard disk interrupt handling.",
                    1752,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,24,72,204,10
    CONTROL         "Disable synchronous buffer &commits.",1758,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,24,84,204,10
    CONTROL         "Disable all 32-&bit protected-mode disk drivers.",1751,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,24,96,204,10
    CONTROL         "Disable &write-behind caching for all drives.",1753,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,24,108,204,10
    CONTROL         "Disable System &Restore.",1814,"Button",BS_AUTOCHECKBOX | 
                    NOT WS_VISIBLE,24,120,204,10
END

I also tried eXeScope, but eXeScope seems to do a poor job parsing controls inside the dialog box.

Edited by jumper, 06 November 2012 - 05:09 AM.

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

#11
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

I was able to disable the Visible and Tabbed options on "Disable System &Restore." and shorten the group box and dialog box to match the 98se version. I also bumped the version to .3002 (in two places).

Good job, looks like you successfully eliminated the Disable System Restore option :thumbup


..But too many changes at once :angel

If you change the size of the group box for that dialog, you must also shorten it for the "Hard Disk" Floppy Disk" "CD-ROM" and "Removable Disk" dialogs as well, because now they are all truncated at the bottom. I had planned to just hide the option, making the absolute minimum changes necessary to get a 98SE-correct version. Then later mods would be up to users.

Edit:
Also noticed that somehow the CDROM Icon on the CDROM dialog is messed up somehow. :blink: Don't know what would cause that.

I do agree that the dialogs should be shortened to be equal to the 98SE version. I just like to do things one step at a time and test each step. It took me 3 versions to get to the one I posted. :lol:

Edited by LoneCrusader, 05 November 2012 - 11:00 PM.


#12
jumper

jumper

    2014 All-American Masters HJ'er

  • Member
  • PipPipPip
  • 474 posts
  • OS:98SE
  • Country: Country Flag

..But too many changes at once :angel

Not quite enough, I'd say! :lol:

I see what you mean about the groupboxes in the other four tabs needing to match. I've never worked with tabbed controls before and didn't realize that changing the size of one sheet could possibly affect the other tabbed sheets. The editor must know to tie them together.

Some of the drop-downs also need to be shortened. And I see the odd cd-rom icon, too--it looks fine in the Developer Studio preview, however.... :blink: I'll look in the exported rc source and compare parameters to what the other icons use.

I'll think I'll start over and just do the minimum as you wizely suggest. :)
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

#13
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

Not quite enough, I'd say! :lol:

I see what you mean about the groupboxes in the other four tabs needing to match. I've never worked with tabbed controls before and didn't realize that changing the size of one sheet could possibly affect the other tabbed sheets. The editor must know to tie them together.

Some of the drop-downs also need to be shortened. And I see the odd cd-rom icon, too--it looks fine in the Developer Studio preview, however.... :blink: I'll look in the exported rc source and compare parameters to what the other icons use.

I'll think I'll start over and just do the minimum as you wizely suggest. :)

Here's another copy with all of the Dialog sizes edited to exactly match the 98SE version. (I open 3 windows of eXeScope, one with the 98 version, one with the copy I'm actually editing, and one with the ME version so I can always see what is different and what the original setting was.)

The Troubleshooting Dialog is of course messed up in this copy because of the size edits. But, a minimum patch to this copy should result in a Dialog exactly like the 98SE one. :yes:

EDIT:
Removed old link.

Edited by LoneCrusader, 06 November 2012 - 04:41 PM.


#14
jumper

jumper

    2014 All-American Masters HJ'er

  • Member
  • PipPipPip
  • 474 posts
  • OS:98SE
  • Country: Country Flag
Temporary attachment: Attached File  Sysdm.7z   131.87KB   8 downloads - SYSDM.CPL

I went back to your previous version, rebuilt the problem icon so the resolutions were in the correct order, then changed the flag and the version strings. (I didn't use your last version because excessive movement in the Troubleshooting tab made it further rather than closer to fully adjusted.) Drugwash was right about only needing to remove just the WS_VISIBLE style.

We have Microsoft to thank for the non-standard icon that was incompatible with MS tools, and for neglecting to extend the sheet sizes for the first four tabs when they extended the group boxes--it wasn't my fault after all! :realmad: . . . :lol:
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

#15
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag
First of all, thanks loblo for reminding me about Visual Studio being able to edit resources.

Then... I've been messing with this file all night. One thing I've learned is that Visual Studio 6 (possibly other versions too, dunno) will definitely screw up any and all dialogs that contain older versions of controls, such as SysTreeView, msctls_trackbar and others. It will replace them automatically and without any notice with the newer 32bit versions (i.e. SysTreeView32, msctls_trackbar32 etc), definitely trashing the edited file.
Therefore, do not attempt to edit any dialog that contains older 16bit controls in Visual Studio - if they need to be modified in any way, use a different tool. ExeScope can modify those dialogs without problems.
However, ExeScope has additional issues in working with dialogs. I've had it constantly crashing when trying to view or edit a certain dialog in SYSDM.CPL. Then, it will not delete any controls or resources whatsoever, leaving the user with only the choice to move/resize controls. So deleting unnecessary controls such as the ones pertaining to System Restore, can only be done in Visual Studio.
I have not even attempted to install Open Watcom because an 80+MB of an installer doesn't look good to me, while all my partitions are full up to the brim.

That said, after lots of crashes and failures I have succesfully rearranged statics on main tab, deleted System Restore-related controls, replaced bitmap resources with some home-made ones for a modern look and plan to replace icons as well. However, I also tried to resize the driver selection dialog 10009 which always seemed too short for the very large lists (try to replace display driver, see how large the Manufacturer list is), only to find out that the whole driver update (and Find new hardware) process would show taller dialogs even though those have never been enlarged. Seems like the largest dialog size in the process will be retrofitted to each and every pertaining dialog. So I'm gonna have to take it back to its original size. No comment! :(

All in all: things can be done, but with extreme care and thorough testing. If I ever get to a stable working version, it will be published somewhere (since I reached my upload quota here). I would kindly ask that such work-in-progress versions as the ones above be distributed privately, for testing purposes, as to avoid any issues with beginners messing with their sytems. A final version should reach the official distributors (Maximus-Decim, PROBLEMCHYLD), should they want to include it in their packages and maybe MDGx, for an unofficial package hosted at his site.

#16
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 755 posts
  • OS:ME
  • Country: Country Flag

I have not even attempted to install Open Watcom because an 80+MB of an installer doesn't look good to me, while all my partitions are full up to the brim.

Here, the UPXed Open Watcom resource editors and their dependencies, ~600kb only: http://www.datafileh...d-ea09e40b.html ;)

#17
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag
Thanks but those tools won't recognize .cpl files. Will stick to those already known to work, caveats included.

#18
loblo

loblo

    Oldbie

  • Member
  • PipPipPipPipPip
  • 755 posts
  • OS:ME
  • Country: Country Flag
Just rename cpl as dll for editing and it'll work just fine.

#19
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag
If they fully supported CPL files, there would've been a choice in the dropdown to select *.cpl. Since it's not, I wouldn't hazard myself into editing and then distributing a system component which might fail on user's computer in unknown/untested circumstances. It's bad enough that MS' own tool can't correctly edit their own files. :(

#20
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

Temporary attachment: Attached File  Sysdm.7z   131.87KB   8 downloads - SYSDM.CPL

I went back to your previous version, rebuilt the problem icon so the resolutions were in the correct order, then changed the flag and the version strings. (I didn't use your last version because excessive movement in the Troubleshooting tab made it further rather than closer to fully adjusted.) Drugwash was right about only needing to remove just the WS_VISIBLE style.

We have Microsoft to thank for the non-standard icon that was incompatible with MS tools, and for neglecting to extend the sheet sizes for the first four tabs when they extended the group boxes--it wasn't my fault after all! :realmad: . . . :lol:

So this version only has two changes - remove the WS_VISIBLE style and rebuild the CDROM icon, right?

Now eXeScope is reporting bogus sizes and color depths for the CDROM icon. - all sizes reported are "rectangles" not "squares" and it claims they are all 4 or 8 colors. :blink: :wacko:

I have frequently seen icon depths "out of order" on other 9x files, why would it be causing a problem now?

That said, after lots of crashes and failures I have succesfully rearranged statics on main tab, deleted System Restore-related controls, replaced bitmap resources with some home-made ones for a modern look and plan to replace icons as well.

Please no. :realmad: Why does someone always have to "personalize" these things? Not everyone wants their icons or their bitmaps changed. Why can't we just get a simple, plain version with no changes other than the ME specific tools and "styles" hidden and the 98SE "General" tab restored (all of which is already accomplished by my first linked version except hiding the "Disable System Restore" option) before someone starts personalizing it?

Edited by LoneCrusader, 06 November 2012 - 10:25 AM.


#21
Drugwash

Drugwash

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,255 posts
  • OS:98SE
  • Country: Country Flag
Easy, don't get a heart attack! :)
I've considered users' wish to keep everything in its original form. If I put this out, it will be in two versions: one containing original resources (icons, bitmaps, avi etc) and one containing updated resources, for those who want modern look, possibly for use in conjunction with Revolutions Pack's themes.

#22
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

Easy, don't get a heart attack! :)
I've considered users' wish to keep everything in its original form. If I put this out, it will be in two versions: one containing original resources (icons, bitmaps, avi etc) and one containing updated resources, for those who want modern look, possibly for use in conjunction with Revolutions Pack's themes.

Ok, that's cool. :thumbup

I fully support "personalization" but I prefer it be left up to each user. Some Icons I update on my own 98SE, some I don't, etc etc.

As long as there is a "bare minimum" modification version in existence before other changes are made, I'm happy.

#23
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,528 posts
  • OS:98SE
  • Country: Country Flag
We have 3 members working hard on this somewhat hybrid file. What version should I use and from whom? :thumbup :lol: :yes: :w00t: :D

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


#24
LoneCrusader

LoneCrusader

    Resistere pro causa resistentiam.

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

Donator

We have 3 members working hard on this somewhat hybrid file. What version should I use and from whom? :thumbup :lol: :yes: :w00t: :D

My original linked version in my first post about SYSDM.CPL (timestamped 3:00:00 AM, it was my own internal 3rd version) has all of the modifications to make the file correct for 98SE with ONE exception - the "Disable System Restore" option is still present on the Troubleshooting dialog.

ONLY the bare minimum of modifications required to make the file correct for 98SE were made; I didn't even increase the version number (will leave that for when this is finalized.)

My goal is to get that one thing hidden, with the minimum amount of changes possible, and I will consider it to be "final." Any other modifications would be up to users.


{offtopic}
IIRC, PROBLEMCHYLD, you use a backported version of ME's System Restore on your own 98SE don't you?

If you like I will take one of my older builds and only modify the System/General Tab and the Strings so that you can have & use the System Restore controls on your own system. :)
{/offtopic}

#25
PROBLEMCHYLD

PROBLEMCHYLD

    The Resurrector for old Windows OS

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

ONLY the bare minimum of modifications required to make the file correct for 98SE were made; I didn't even increase the version number (will leave that for when this is finalized.)

This will be the version I add to SP3.x once everything is finalized :thumbup

{offtopic}
IIRC, PROBLEMCHYLD, you use a backported version of ME's System Restore on your own 98SE don't you?

If you like I will take one of my older builds and only modify the System/General Tab and the Strings so that you can have & use the System Restore controls on your own system. :)
{/offtopic}

I'm not using it at the moment, but I will be once I kill all the bugs in SP3 :w00t:

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN