Solved

On application execute

Posted on 2004-08-23
3
218 Views
Last Modified: 2010-04-23
How do I monitor what application is executed when my application is running, what system event is it? And how can I pass the application name to a function, along with stopping the application from running. I know this can be done with group policy, but how do I do it via VB.NET?
0
Comment
Question by:drakkarnoir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Scoobyed earned 500 total points
ID: 11879144
not tried any process monitor ability, maybe with wmi,
http://www.winnetmag.com/WindowsScripting/Articles/ArticleID/15643/pg/2/2.html
can search through all running processes
      Dim pr As Process
      Dim prs As Process()
      Dim index As Integer
      prs = Process.GetProcesses
      For index = 0 To prs.Length - 1
        Try
          pr = prs(index)
          if pr.ProcessName = "kill me"
             pr.Kill()
          End If
        Catch ex As Exception
        End Try
      Next
can find out name pr.ProcessName, where the exe for process is pr.MainModule.FileName etc. (to decide if to stop it) http://msdn.microsoft.com/msdnmag/issues/02/09/AdvancedBasics/default.aspx
0
 
LVL 3

Assisted Solution

by:Scoobyed
Scoobyed earned 500 total points
ID: 11879161
0
 

Author Comment

by:drakkarnoir
ID: 11883661
Well those links don't really have what I am looking for. Example, say I only want the IEXPLORE.exe to be allowed, how would I do that?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question