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
 

House_Cat

Advanced Member level 4
Joined
Feb 21, 2002
Messages
1,371
Helped
406
Reputation
812
Reaction score
98
Trophy points
1,328
Location
USA
Activity points
16,416
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.
 

shlfilovey

Newbie level 3
Joined
Feb 27, 2005
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
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

Top