473,396 Members | 1,975 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,396 software developers and data experts.

Monitor Windows

Rui

Can I write a windows service in .NET that monitors what happens on a server?

(e.g.. which applications where started, what files where accessed, registry
changes,...)
Jul 3 '06 #1
4 1519
Rui wrote:
>
Can I write a windows service in .NET that monitors what happens on a
server?

(e.g.. which applications where started, what files where accessed,
registry changes,...)
Hi Rui,

Just to clarify, do you mean the service will be running *on* the machine
you want to monitor? Or you want to monitor a remote machine?

--
Hope this helps,
Tom Spink
Jul 3 '06 #2
Rui
Yes, the service will be running on the machine and will log all the actions
performed on a file.

"Tom Spink" wrote:
Rui wrote:

Can I write a windows service in .NET that monitors what happens on a
server?

(e.g.. which applications where started, what files where accessed,
registry changes,...)

Hi Rui,

Just to clarify, do you mean the service will be running *on* the machine
you want to monitor? Or you want to monitor a remote machine?

--
Hope this helps,
Tom Spink
Jul 3 '06 #3
Hello Rui,

It can be set via Windows.
File properties->Security Tab->Advances button->Auditing tab

Or use FileSystemWatcher class

RYes, the service will be running on the machine and will log all the
Ractions performed on a file.
R>
R"Tom Spink" wrote:
R>
>Rui wrote:
>>Can I write a windows service in .NET that monitors what happens on
a server?

(e.g.. which applications where started, what files where accessed,
registry changes,...)
Hi Rui,

Just to clarify, do you mean the service will be running *on* the
machine you want to monitor? Or you want to monitor a remote
machine?

--
Hope this helps,
Tom Spink
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jul 3 '06 #4
Rui wrote:
Yes, the service will be running on the machine and will log all the
actions performed on a file.

"Tom Spink" wrote:
>Rui wrote:
>
Can I write a windows service in .NET that monitors what happens on a
server?

(e.g.. which applications where started, what files where accessed,
registry changes,...)

Hi Rui,

Just to clarify, do you mean the service will be running *on* the machine
you want to monitor? Or you want to monitor a remote machine?

--
Hope this helps,
Tom Spink
Well, for file changes, the FileSystemWatcher class will probably be of some
use to you. As for when applications are started, that's a bit more
complex. There's no concrete event you can subscribe to, in order to get
such notifications. To ensure you get all process creation notifications,
the best way (that I know of) involves native DLLs and code injection, to
trap calls to CreateProcess (or in extreme cases NtCreateProcess).
Obviously, this technique is not possible in C# (or any .NET language).

--
Hope this helps,
Tom Spink
Jul 3 '06 #5

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

Similar topics

10
by: KJM | last post by:
How can I detect if the user has dual monitors and then how do I control which monitor a form is displayed on. Currently my forms always come up on my right monitor. What if I want to have it...
1
by: HockeyTownUSA | last post by:
I am working a project where I am using two monitors and using HTML/Javascript to display the information I want. I have my main stuff on the main monitor, but when each page loads, I want an...
4
by: Valerie Hough | last post by:
Does anyone have an example of how to get the PHYSICAL monitor size in C#? In C++ I used to use GetDeviceCaps( dc, HORZSIZE ) which returns the monitor size in mm, then I converted it to inches....
3
by: slowram | last post by:
I know how to get the monitor dimensions, virtual monitor dimensions, but how do I get the location of the second monitor in relationship to the original? On the desktop when I go into my property...
1
by: Matt | last post by:
I'm writing a plug-in in VB.NET to a an application called DesktopSidebar for Windows. Right clicking my plug-in's "panel" gives shows among other things a Properties Dialog. All I need to do is...
3
by: fournij | last post by:
Hi I'm writing a MFC C++ application using Visual .NET. I'm using a Dual Head video card with 2 monitors. I want to start my application in the first monitor but open a dialog box in the...
4
by: John | last post by:
I'd like to write a programme that runs on a PC with two monitors. The application would be used in a shop, with one monitor for shop assistant and the other for the customer. The two must show...
2
by: Bill Nguyen | last post by:
Is there a way to send output from a .NET app to a selected monitor screen in a 3-monitor client desktop? Currently, my app sends output to 3 windows then I have to move/drag each of them to the...
7
by: Bill Nguyen | last post by:
This has been posted before but received no response: I need to arrange window screens on the total area of a mulitple-mopnitor desktop. As an example, below is the bound info for my 2-monitor...
8
by: Sheldon | last post by:
I just received a 2nd (configured as a dual) monitor but, for Access only, I can't seem to figure out, if it's possible, to view, say, Table1 on one monitor and Table2 on the other monitor. If I...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.