Solved

On application execute

Posted on 2004-08-23
3
220 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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