Colleagues,

Is Template Method design pattern and Hook the same thing by different names?
Odd thing is, when I look up hook design pattern on Google, 90% of search results go to pages that describe the Template Method design pattern. I'm trying to find the historical explanation for this. Is Hook a non-OO spiritual precursor to Template Method?

What had prompted me to look into the Hook pattern was this Miro Samek's app note about pattern which he calls "Ultimate Hook". This app note is about message handling by hierarchical state machines. Samek didn't invent the term "Ultimate Hook", though. It was mentioned in 1995 by Petzold in his book on Win 95 programming. The context was plain C. WinMain(...) and WndProc(...) without classes.

Any suggestion, insight or reference is really appreciated!

Cheers,
- Nick