473,326 Members | 2,337 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,326 software developers and data experts.

How do I watch for executables starting???

Hello,
I am working on an AntiSpyware software/utility using VB.NET 2005
I need to create a class to watch for processes starting or executables
starting running.

So far the solution that I have come up with is to use the
System.Diagnostic.Process to iterates through running processes... This is
tedious and CPU intensive...
I would like a solution similar to the FileSystemWatcher, that would notify
me as soon as a new executable or process has started... so I can catch it,
scan it etc...
Is there any code, custom code or examples I could use to come up with this
stategy?
Any help would be appreciated.
Thank you,

Learner.
Aug 28 '07 #1
3 1443
a little searching on MSDN brings up the CBT hook
(http://msdn2.microsoft.com/en-us/library/ms644977.aspx) which you can use to
find out when a new Window is created, etc. look around the System hooks,
usually thats a good place to start for System-Wide events (that and the
WndProc function)
--
-iwdu15
Aug 28 '07 #2
Thank you,
This looks promising, but it is written for CPP programmers, I am not sure
how I would apply it to a .NET VB.NET environment.
But this is a good start... thank you for your kind reply.

Learner.

"iwdu15" <jmmgoalsteratyahoodotcomwrote in message
news:C8**********************************@microsof t.com...
>a little searching on MSDN brings up the CBT hook
(http://msdn2.microsoft.com/en-us/library/ms644977.aspx) which you can use
to
find out when a new Window is created, etc. look around the System hooks,
usually thats a good place to start for System-Wide events (that and the
WndProc function)
--
-iwdu15

Aug 28 '07 #3
you can use PInvoke to set a CBT windows hook in the .net environment.
www.pinvoke.net is the place u wanna look at
--
-iwdu15
Aug 29 '07 #4

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

Similar topics

2
by: Hrvoje Somun | last post by:
How can i call some other program from java application? let say i want to call iexplorer('iexplore' from command line)... thnx
7
by: Catalin | last post by:
How can I make executables with python? I found some utilities that claim they can do something like that like Installer and py2exe but they actualy pack the code in a huge arhive! This solves the...
3
by: Premshree Pillai | last post by:
Hello, I recently posted a simple Python script--Watch That Post--that lets you watch a URL for any changes. I wrote it to watch posts on LiveJournal, but it can watch any URL. It's at...
9
by: mac | last post by:
when a c program is compiled using 'gcc test.c' 'cannot create c executables is thrown' I cannot able to figure out the problem could anyone help me. Thanks.
2
by: ven | last post by:
I have used C# binary formatter to serialize and deserialize a data structure. However, for the same data format( used by the first executable, the same *.CS files), the second executable gives an...
4
by: Girish | last post by:
Ok, starting from the basics. Reference types and value types are all objects underneath. So, a String is an object as well. Now, when when we are debugging and we examine the contents of a...
1
by: Water Cooler v2 | last post by:
I have a Windows Service I am writing in C# and a set of, let us say three, other executables written in C# (mostly console applications). I want that the Windows Service must do so every few...
2
by: Jay12345 | last post by:
Hello friends, I am new to both VB6.0 and MatLab. Can anyone guide me on how to call a MatLab executable from VB6.0? i.e. I want to call a program written in MatLab(executable) from a VB6.0...
4
by: ravit | last post by:
I have built my gdb-6.7.1 yesterday on my AIX 5.3 64 bit machine. my gcc is gcc3.3.2 and tried debugging 64 bit executables generated by gcc, working fine. debugging session ends successfully....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.