83Plus:BCALLs:51CA

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: ChkHelpHookVer

BCALL Address: 51CA

Minimum OS Version: 2.30

Checks to see if the currently installed help hook is compatible with base code 2.20 and higher.

Inputs

None

Outputs

  • NC: Help hook is compatible with 2.20 and higher.

Destroys

None

Comments

This entry point expects the help hook to begin with an ID string so it can determine compatibility. The first two bytes should be 1802, and the next two should be either 0214 (=2.20d) to show OS 2.20 compatbility, or some smaller number, like 0110 (=1.16d) to show OS 2.20 incompatbility. If the ID string is not present, the entry point will assume 2.20 incompatibility.

The OS uses this routine to determine whether to pass new tokens to the help hook.

Note: This routine doesn't check to make sure a help hook is actually installed. You should do that before calling.