What's hook function in OS?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
what are os hooks

Hello all,

What's hook function in OS? Please recommand some reference, thanks!

DAVY
 

A programming 'hook' is a subroutine that intercepts some call in the operating system and diverts it to a different program path.

For example, you could write a subroutine to watch for the press of the F3 fuction key on the keyboard. When the key is pressed, your subroutine would interupt the normal program flow and have a program separate from the OS do something - like start a debugging program, or pop up a message, or ...

There really isn't a reference that covers the subject of 'hooks' for all the possibilities. You should enter 'programming hook' into Google, or some other search engine, and look at the info available on the web.
 

Simply speak ! You can program you subroutine in the 'hook' function!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…