468,765 Members | 809 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

Hooking up ShellExecute with SetWindowsHookEx()

Does anyone have actually used SetWindowsHookEx() to hook upShellExecute() so as to find what application was started bywindows or which folder is currently browsed by explorer. I knowone thing and that is ... Windows uses ShellExecute() to doalmost every task.
I need some implementation help. I want to trigger an userdefined function when suppose Notepad is opened or in simplecase a messagebox that says Notepad has started.
If anyone has a better solution, other than setting a hook toShellExecute pls. inform. Any kind of help will always beappreciated. Pls. keep the implementation in vb.net or C#.

--------------------------------
From: bugs bunny

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>a0mua5x0N02q0V6JDtvtHQ==</Id>
Nov 21 '05 #1
1 2709
Hi,

Maybe this will help
http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
--------------
"bugs bunny via .NET 247" <an*******@dotnet247.com> wrote in message
news:ux**************@TK2MSFTNGP15.phx.gbl...
Does anyone have actually used SetWindowsHookEx() to hook up ShellExecute()
so as to find what application was started by windows or which folder is
currently browsed by explorer. I know one thing and that is ... Windows uses
ShellExecute() to do almost every task.
I need some implementation help. I want to trigger an user defined function
when suppose Notepad is opened or in simple case a messagebox that says
Notepad has started.
If anyone has a better solution, other than setting a hook to ShellExecute
pls. inform. Any kind of help will always be appreciated. Pls. keep the
implementation in vb.net or C#.

--------------------------------
From: bugs bunny

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>a0mua5x0N02q0V6JDtvtHQ==</Id>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Seth Gecko | last post: by
1 post views Thread by TMP | last post: by
1 post views Thread by TMP | last post: by
2 posts views Thread by Fabiano | last post: by
15 posts views Thread by bruno | last post: by
2 posts views Thread by donald | last post: by
8 posts views Thread by pigeonrandle | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.