473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help with events

Hi folks,
Ive asked this question before on this newsgroup but at the time nobody knew
the answer so hopefully somebody else will see this post this time around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com
Jul 21 '05 #1
6 1117

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.


You mean any program on the system?
Jul 21 '05 #2
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody knew
the answer so hopefully somebody else will see this post this time around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com

Jul 21 '05 #3
Yes any programs starting
like, as in sombody runs "notepad.exe" or "quake3.exe"
anything that apears in the tasks list
..
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:O0**************@TK2MSFTNGP15.phx.gbl...

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need
to know when any new ones are loaded or run.


You mean any program on the system?

Jul 21 '05 #4
Thanx for that article link
Im not sure if that will work for this tho. what if the user runs a program
the doesn't have a window ?
also i tried the example code but i could only get it to catch windows
spawned by that particular program , not in the scope of the whole system ?
Thanx

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew
the answer so hopefully somebody else will see this post this time around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com

Jul 21 '05 #5
http://thedotnet.com/howto/work219958.aspx
(includes a working WMI sample to detect when a process is created or
destroyed)

These deal with mouse and keyboard hooks. But the idea is the same:
http://www.codeproject.com/csharp/GlobalSystemHook.asp
http://www.codeproject.com/csharp/globalhook.asp
hope that helps..
Imran.

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader01.plus.net...
Thanx for that article link
Im not sure if that will work for this tho. what if the user runs a
program the doesn't have a window ?
also i tried the example code but i could only get it to catch windows
spawned by that particular program , not in the scope of the whole system
?
Thanx

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew
the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need
to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com


Jul 21 '05 #6
Ah , we might be getting somwhere now
Thanx to all who reply

"Imran Koradia" <no****@microsoft.com> wrote in message
news:eh**************@TK2MSFTNGP11.phx.gbl...
http://thedotnet.com/howto/work219958.aspx
(includes a working WMI sample to detect when a process is created or
destroyed)

These deal with mouse and keyboard hooks. But the idea is the same:
http://www.codeproject.com/csharp/GlobalSystemHook.asp
http://www.codeproject.com/csharp/globalhook.asp
hope that helps..
Imran.

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader01.plus.net...
Thanx for that article link
Im not sure if that will work for this tho. what if the user runs a
program the doesn't have a window ?
also i tried the example code but i could only get it to catch windows
spawned by that particular program , not in the scope of the whole system
?
Thanx

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew
the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting ,
i
don't necessarily need to know the details of the program but just need
to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com



Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: cxw0106 | last post by:
Hello, I have some weird problem with the FileSystemWatcher. I have developed an application that monitors a network directory for file changes of a certain file type. The program runs well for...
2
by: dave | last post by:
Hi, I have a COM control / server I'm trying to get events from in my c# applications. 1) I'm trying to get events in both c# console apps and in c# winform apps. 2) I can call methods on the...
0
by: charles hamm | last post by:
Okay, I'm trying to synchronize two threads using CEvent and CMultilock. What I need to achieve here is that they can execute in parallel until they reach a succession of "barriers" (borrowing a...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
2
by: hakan_cn | last post by:
Hi all! Sorry for the cross-post, I really have a difficult problem and need some help badly. I have a VB6 ActiveX component (dll) that listens to a real-time data feed of stock quotes (built...
9
by: labelle | last post by:
I have an event listing on my website that is pulling from SQL. Unfortunately, the listing is displaying all events, especially those that are even 2 years old. I want to get rid of them and only...
5
by: sajin | last post by:
Hi All.. We are using VB .Net 2005 for implementing an API. API needs to generate events. For this client wants us to use Windows Callback (delegate implementation). The intention of using...
3
by: Lester | last post by:
I'm driving myself crazy with a problem in trying to translate a query written for Access to that for SQL server. I would think that I would use a trigger, but am not sure how to set it up. We...
4
by: Ty | last post by:
Hello all, I am creating a website in VS 2008 VB.net. On one of my pages I am using the Table control to make a type of calendar a IN/OUT board. The problem I found after I wrote all the code...
9
by: README | last post by:
so what i need to do is implement a code that will take the maximum number in a array and put it into another array. events is an array that contains numbers that was extracted from a file. Count...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.