Manual Installation of HWMan Class

From OS2World.Com Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Article Info
Author Martin Iturbide
Date 2016
OS Version OS/2 Warp 4.52
Companion File N/A
Source N/A

This is also a good example on how to install a WPS Class manually on OS/2 and eComStation.

Manual Installation

Use this instructions only if you don't want to use the WarpIn installer. This is the manual way to register a class on WPS.

Instructions:

  1. Copy the DLL (hwman.dll) to a convenient place
  2. Open XWorkplace "WPS class list" object
  3. Do right click in class tree and select "Register new class", select the DLL (hwman.dll) and specify "WPHwManagerEx" as the class to register
    Select "Register New Class"
  4. Refresh the "WPS class list" view by hitting F5 or do a WPS restart until "WPHwManagerEx" shows up in the "WPS class list" class tree
  5. Open XWorkplace "WPS class list" object
  6. Right click on "WPHwManager" and select "replace by subclass" (or whatever it's called in English)
  7. In the dialog select "WPHwManagerEx" which is a subelement of "WPHwManager"
  8. Hit "OK
  9. Restart WPS

If you attach and detach USB devices, you will need to hit F5 in the HWManager view to trigger an update of the view(s) (as always). I could implement a secondary thread to trigger the update on a regular basis but I didn't (save CPU for more important things).

Manual Installation Screenshots

The manual installation of this software is not longer necessary since it came with a WPI installer that register the WPS class without problems. The procedure is just listed here for information purposes.

Using WPS Class List Utility

Once hwman class is installed you can see that WPHwManagerEX overrides WPHwManager.