John Smith
John Smith

Reputation: 1

windows driver development: context switch callback?

Is it possible for a driver to register a callback in the kernel for every context switch?

thanks!

Upvotes: 0

Views: 510

Answers (1)

munin
munin

Reputation: 503

No. Context switches happen too frequently. There are APIs to register yourself for notification of thread / process creation / termination (PsSetCreateProcessNotifyRoutine, etc). Maybe that would help?

Upvotes: 1

Related Questions