How to Use the OH Tool on the Windows NT 4.0 Resource Kit

This article was previously published under Q172710
This article has been archived. It is offered "as is" and will no longer be updated.
This article discusses the OH monitoring tool OH (Oh.exe) that is includedin the Microsoft Windows NT Server 4.0 Resource Kit Supplement Two. The OHutility can help monitor which files, registry keys, and directories arein use by certain services at any given time.
This command-line tool shows the handles of all open windows.Alternatively, you can constrain the OH display to show only informationrelating to a particular process, object type, or object name. Thisfeature is useful when a sharing violation occurs because you can find theprocess that has a file open at the time of violation.

To function properly, OH requires that an option internal to the WindowsNT kernel be enabled. This option maintains a linked list of all objectsby object type. If OH detects that this option is not set, OH sets it andsends a message that the user must restart the computer before the optionwill take effect. After restarting, OH can give useful results.

This linked list costs 8 bytes of overhead for each object. If desired,this option can later be disabled with Gflags.exe (in the Windows NT 4.0Resource Kit) by clearing the check box for" Maintain a list of objectsfor each type" in the Global Flags window, then restarting the system.

The most convenient way to use OH is to have it pipe the data to a textfile. At the command prompt type:
Oh >***.txt {where *** is the name you provide}
To view the data, open the file with Notepad.
For additional information about the OH utility, type the following lineat a command prompt type, and then press ENTER:
Use OH /?

Article ID: 172710 - Last Review: 12/04/2015 17:38:49 - Revision: 1.1

Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Server 4.0 Standard Edition

  • kbnosurvey kbarchive kbinfo kbtool KB172710