In computer programming, the term hooking covers a range of techniques used to alter or augment the behavior of an operating system, of applications, or of other software components by intercepting function calls or messages or events passed between software components. Code that handles such intercepted function calls, events or messages is called a "hook".
Hooking is used for many purposes, including debugging and extending functionality. Examples might include intercepting keyboard or mouse event messages before they reach an application, or intercepting operating system calls in order to monitor behavior or modify the function of an application or other component. It is also widely used in benchmarking programs, for example frame rate measuring in 3D games, where the output and input is done through hooking.
Hooking can also be used by malicious code. For example, rootkits, pieces of software that try to make themselves invisible by faking the output of API calls that would otherwise reveal their existence, often use hooking techniques. A wallhack is another example of malicious behavior that can stem from hooking techniques. It is done by intercepting function calls in a computer game and altering what is shown to the player to allow them to gain an unfair advantage over other players.
Hooking (ice hockey)
Hooking in ice hockey is a penalty. The NHL covers hooking in Rule 55, which defines it as "the act of using the stick in a manner that enables a player or goalkeeper to restrain an opponent." The NHL groups hooking with other "Restraining fouls" such as holding, interference and tripping.
Hooking is a concept in computer programming dealing with control flow.
Hooking may also refer to:
- Hooking (ice hockey), an ice hockey penalty
- Hooking (sex trade), the act of engaging in sexual activity in exchange for money or goods
- Rug hooking, a craft where rugs are made by pulling loops of yarn or fabric through a stiff woven base
The Collaborative International Dictionary
Hook \Hook\, v. t. [imp. & p. p. Hooked; p. pr. & vb. n. Hooking.]
To catch or fasten with a hook or hooks; to seize, capture, or hold, as with a hook, esp. with a disguised or baited hook; hence, to secure by allurement or artifice; to entrap; to catch; as, to hook a dress; to hook a trout.
Hook him, my poor dear, . . . at any sacrifice.
To seize or pierce with the points of the horns, as cattle in attacking enemies; to gore.
To steal. [Colloq. Eng. & U.S.]
To hook on, to fasten or attach by, or as by, hook.
n. (context ice hockey English) The penalize action of using one's stick to restrain an opponent. vb. (present participle of hook English)
Usage examples of "hooking".
At the eightieth rung he reached for the free end of the ladder and reeled it in after hooking an arm about and through a rung, leaving both hands free.
Tristam wedged his back against the mast and pushed his legs through the trestletrees, hooking his feet into the futtock shrouds, but, even so, he was forced to clap onto a line with his hands regularly.
Hooking Jute by the elbow, Shoy led him to a newsstand and bought an evening newspaper.
On that rock the line of the lariat caught, hooking the swimmers sharply in toward the bank.
A beefy ork girl was hooking on the next corner, while across the way a trio of bedraggled chipheads were begging.
Tomorrow she would be in the lab hooking the baboons to a phoresis machine to harvest their white cells.
The weapon quickly ensnared the shocked rass, hooking it beneath its wide hood.
Springing upward, I struck him full in the face as he turned at my warning cry and then as he drew his short-sword I drew mine and sprang up again upon his breast, hooking one leg over the butt of his pistol and grasping one of his huge tusks with my left hand while I delivered blow after blow upon his enormous chest.
I was embarrassed at the obvious depraved pleasure with which this miniaturist had drawn pictures of bastinados, beatings, crucifixions, hangings by the neck or the feet, hookings, impalings, firings from cannon, nailings, stranglings, the cutting of throats, feedings to hungry dogs, whippings, baggings, pressings, soakings in cold water, the plucking of hair, the breaking of fingers, the delicate flayings, the cutting off of noses and the removal of eyes.
Uni-cellular bureaucrats warned protozoic out-castes about hooking up in multi-cellular linkages.
As the men were hooking the load cables to the tie blocks, Joya showed me the small instrument panel and explained it to me: variometer for rate of ascent and descent, pyrometer for temperature up in the crown of the balloon, compass-which she said was not very meaningful because there was no way to steer once you were aloft.
After that he never let him rest, receiving punishment himself, but inflicting far more, smashing Sandel to the ropes, hooking and driving all manner of blows into him, tearing away from his clinches or punching him out of attempted clinches, and ever when Sandel would have fallen, catching him with one uplifting hand and with the other immediately smashing him into the ropes where he could not fall.
The servery was a narrow room with one long aluminum table at which the diners could approximate sitting by hooking their knees around the railing half a meter down from each edge of the table.
One hand brushed with apparent casualness at the unseamed opening of her shirt, thumb hooking in and slipping the fabric back to reveal the breast beneath.
Ever since the first development of artificial synapses capable of linking up human nervous systems to silicon-based electronic systems, numerous schemes had been devised for hooking up the brain to computers or adding smart nanotech to its cytoarchitecture, but almost all the experiments had gone disastrously wrong.