Dave Markle
Dave Markle

Reputation: 97801

CBT Hooks in Windows... What does "CBT" stand for?

Here's a quick one.

I'm starting out with using hooks in in Windows, and I notice that there's a hook type called a "CBT" hook. Though I know how it's used from the documentation, what does CBT stand for, exactly? I'm having a bit of trouble finding that in the docs...

Upvotes: 11

Views: 9059

Answers (4)

Brian Wilson
Brian Wilson

Reputation: 31

"Computer Based Training" is exactly what I used this feature for back in the day. It enabled my training applications to "hook into" the events happening behind the scenes (hence the name) and determine what a user was doing.

One way I used this feature was to develop "authentic assessments" to test users' skills in Windows applications. For example, my application would launch an application like Word or Excel, open a document and establish a context within the application. It would pop up a little window that asked the user to perform a particular task.

The whole time the user was performing the task, my application would use CBT Hooks, VBA, general Windows messaging, file system events, and other available information to determine if the student had performed the task correctly. This resulted in a much truer evaluation of the student's capabilities than simply asking a multiple choice or true/false question.

Upvotes: 2

Cody Gray
Cody Gray

Reputation: 244951

CBT stands for "Computer-Based Training". In addition to its original, intended purpose of enabling instructional software, a CBT hook is most commonly used to provide notification when a window is created, destroyed, activated, resized, moved, minimized, etc.

See the CBTProc Callback Function docs on MSDN for more information.

Upvotes: 14

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 121037

It stands for Computer Based Training.

Upvotes: 3

Pontus Gagge
Pontus Gagge

Reputation: 17278

I believe it is "Computer Based Training": it's intended to be used in (very basic level!) instructional software that shows the user how to move and click the mouse.

Upvotes: 2

Related Questions