OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Martin Iturbide on July 12, 2024, 04:58:47 pm

Title: Experiment: Moving OS/2 Graphic/MM Resources
Post by: Martin Iturbide on July 12, 2024, 04:58:47 pm
Hello

I want to make a little experiment of moving the graphics resources like BMPs, Pointers, ScreenSavers to a different folder structure. This is just an experiment to for me try it out and document things on the wiki.

I'm looking forward to see what problems gives me ArcaOS-OS/2 and see if a workaround can be found. I will be asking for help here and you are welcome to try it yourself too, but remember I'm not pointing a gun for everybody to try it out.

I want to start with Pointers. I want to move C:\OS2\POINTERS to C:\RESOURCES\POINTERS as part of the experiment. My first issue is that the "Load Set" on the "Pointers" settings will break up. Is this locations stored somewhere on an INI file that can be updated to the new path?

Regards
Title: Re: Experiment: Moving OS/2 Graphic/MM Resources
Post by: Lars on July 12, 2024, 07:54:26 pm
The Mouse Setup object is managed by WPS class "WPMouse". That class is implemented in DLL WPCONFIG.DLL.

If I unpack WPCONFIG.DLL, I find this text string in it:
STARTFOLDER=?:\OS2\POINTERS

It is therefore hard coded and cannot be changed.

Note: The STARTFOLDER is a setup string for the "wpclsFindOneObject" class method of WPObject for the top level folder to search from. So you will only be able to search under that folder.
Title: Re: Experiment: Moving OS/2 Graphic/MM Resources
Post by: Martin Iturbide on July 13, 2024, 05:09:09 pm
Thanks for the feedback Lars.

I get that is hardcoded on WPConfig.DLL.

Just one question, when you say "If I unpack WPCONFIG.DLL", what procedure are you doing there?

Regards
Title: Re: Experiment: Moving OS/2 Graphic/MM Resources
Post by: Dave Yeo on July 14, 2024, 07:25:12 pm
I think "lxlite /x file"
Title: Re: Experiment: Moving OS/2 Graphic/MM Resources
Post by: Martin Iturbide on July 15, 2024, 05:06:03 pm
Just one question, when you say "If I unpack WPCONFIG.DLL", what procedure are you doing there?

Sorry, I should explain myself better.
The right question is - What procedure are you doing there to know the information of the DLL that shows you the text string "STARTFOLDER=?:\OS2\POINTERS" from WPConfig.DLL?

I want to see if I can learn more about what information can I get from DLLs.

Regards
Title: Re: Experiment: Moving OS/2 Graphic/MM Resources
Post by: Dave Yeo on July 15, 2024, 05:56:49 pm
After unpacking, preferably a copy of the DLL, you can run strings on it, piping the results through less,
Code: [Select]
strings WPCONFIG.DLL | less
And see all text in the DLL. Strings is not perfect so you do get some garbage mixed in. There's a lot of strings in this DLL.
Or if you know what you are looking for, use grep,
Code: [Select]
H:\tmp>strings WPCONFIG.DLL  | grep "POINTERS"
NAMEFILTER=*;CLASSLIST=WPPointer;STARTFOLDER=?:\OS2\POINTERS;DEFAULTCRITERIA=YES

NAMEFILTER=*;CLASSLIST=WPFolder;STARTFOLDER=?:\OS2\POINTERS;DEFAULTCRITERIA=YES DIALOG=NO