Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top