The understanding of Hooks

Source: Internet
Author: User

The hook was originally translated from a foreign language. HOOKS, the official explanation is that the hook is the messaging mechanism of the Windows platform

Colleague programmer said: Hook Main Event trigger is to monitor, and the memory of the operation of two applications.

To figure out what the hook is for? First of all, we need to understand what real life hooks are for.

In real life, the main application of hooks is to use more steelyard. Is the following a tray to put things, and then hooked by hooks, if the weight of the load increased, it will cause the hook changes, or hooks can sense.

This is the principle of hooks, hooks and weights linked together, but it is not like with 520 glue together, can only bind a thing, but can clearly distinguish with the hook itself different weight changes, so you can monitor

Changes in weight. Then in the program development, the weight is the user submitted data, or data read from the database, and then passed to the hook, the hook sensor, the back of the steelyard weight scales will move backwards, then the performance of the program development,

Is that the style passed to the browser has changed.

The understanding of Hooks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.