Click here to Skip to main content
12,512,314 members (66,545 online)
Click here to Skip to main content

Stats

237.7K views
7.9K downloads
220 bookmarked
Posted

Global Windows Hooks

, 24 Sep 2010 CPOL
A single component that contains various Windows hooks
Library Files
WindowsHookLib.dll
Source Code and Demo
WindowsHookDemo
WindowsHookDemo.suo
WindowsHookDemo
bin
Debug
WindowsHookDemo.exe
WindowsHookDemo.vshost.exe
WindowsHookLib.dll
Release
My Project
Application.myapp
WindowsHookDemo.vbproj.user
WindowsHookLib
WindowsHookLib.suo
WindowsHookLib
bin
Release
x86
Release
WindowsHookLib.dll
WindowsHookLib.dll.lastcodeanalysissucceeded
WindowsHookLib.pdb
Properties
Resources
clipboard.ico
keyboard.ico
mouse.ico
Thumbs.db
WindowsHookLib Component
WindowsHookLib.dll
using System.Diagnostics;
using System;
namespace WindowsHookLib
{
    /// <summary>
    /// Provides data for the WindowsHookLib.ClipboardHook.ClipboardChanged event.
    /// </summary>
    [DebuggerNonUserCode]
    [DebuggerDisplay("SourceWindow = {_sWnd}")]
    public class ClipboardEventArgs : EventArgs
    {
        #region ' Members '

        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
        private readonly IntPtr _sWnd;

        #endregion

        #region ' Properties '

        /// <summary>
        /// Gets the window handle that has set the last clipboard data.
        /// </summary>
        public IntPtr SourceWindow
        {
            get
            {
                return this._sWnd;
            }
        }

        #endregion

        #region ' Methods '

        /// <param name="sourceWindow">The window handle that has set the last clipboard data.</param>
        public ClipboardEventArgs(IntPtr sourceWindow)
        {
            this._sWnd = sourceWindow;
        }

        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Arman Ghazanchyan
Software Developer (Senior) ZipEdTech
United States United States
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160929.1 | Last Updated 24 Sep 2010
Article Copyright 2007 by Arman Ghazanchyan
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid