Solved

On application execute

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET Repostiory Pattern 7 49
get column names from table in vb.net 8 49
SqlServer no dupes 25 37
Vb.net threads keep increasing 2 35
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

839 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