How to set a Windows hook in Visual C# .NET (318804)
The information in this article applies to:
- Microsoft .NET Framework 2.0
- Microsoft .NET Framework 1.1
- Microsoft .NET Framework 1.0
- Microsoft Visual C# 2005, Express Edition
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
This article was previously published under Q318804
For a Microsoft Visual Basic version of this article, see 319524.
Introduction
This article describes how to set a hook that is specific to a thread and to a hook procedure by using the mouse hook as an example. You can use hooks to monitor certain types of events. You can associate these events with a specific thread or with all the threads in the same desktop as a calling thread.REFERENCES
For more information about hooks, visit the following Microsoft Developer Network (MSDN) Web site:
Modification Type: | Major | Last Reviewed: | 9/15/2005 |
---|
Keywords: | kbHOWTOmaster KB318804 kbAudDeveloper |
---|
|