Microsoft KB Archive/70945

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:29, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q70945 to Microsoft KB Archive/70945 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

PRB: WinQueryVersion Major & Minor Version Documentation Error PSS ID Number: Q70945 Article last modified on 08-13-1991 PSS database name: O_Os2SDK

1.21

OS/2

Summary:

SYMPTOMS According to the documentation for the WinQueryVersion() function, the low word contains the minor version in the LoByte, and the major version is contained in the HiByte. However, when using this function in OS/2 version 1.21, the LoByte contains the major version and the HiByte contains the minor version.

CAUSE Microsoft has confirmed that part of the documentation for the WinQueryVersion() function is incorrect on page 330 of the “Microsoft Operating System/2 Programmer’s Reference Volume 2” for version 1.10. The following statement on page 330 is incorrect:

  The low word contains the minor version in the LoByte and the
  major version is contained in the HiByte.

This documentation error also occurs in the version of QuickHelp that is included with the Presentation Manager (PM) version 1.21 Programmer’s Toolkit (PTK).

STATUS The following example, which is also listed on page 330 of the programmer’s reference, includes the correct syntax:

  LoByte(LouShort(return)) - Returns major version
  HiByte(LouShort*return)) - Returns minor version

Also, the macro examples are correct except for a minor error in the HiByte example. In this macro example, an asterisk "*" is used instead of a left parenthesis “(”.

We will post new information here when the printed documentation and QuickHelp has been updated to correct these errors.

Copyright Microsoft Corporation 1991.