473,769 Members | 5,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1545
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 FileSystemWatch er 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 FileSystemWatch er 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
30452
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 always display on my left one? Thanks Ken
1
19596
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 image to load fullscreen on the second monitor as well. I am using 800x600 resoution on both. If I use: function openWindow()
4
4209
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. When I do this as unmanaged code in C#, I am getting back a value that show my 19" monitor has a width of only 12.9", whereas my trusty ruler shows it to be about 15.5".
3
9310
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 settings for the monitor I can move around the monitors so if say the second monitor is lower than the first I can position it accordingly. Are these values wrote to the registry? Is there some way to get them? For instance I'd like to know if...
1
6328
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 pop up the dialog in the proper place. After quite a bit of trial and error I came up with this: Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Int32, ByRef lpRect As RECT) As Int32 Public Structure RECT
3
7690
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 second monitor. I tried to set the X position of the dialog box greather thant the first screen resolution, but the dialog box still appear on the first monitor. Can you help me ?
4
2390
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 things independently, so the application can display certains things on one monitor (eg goods in the store) and certain other things on the other monitor (eg details of a certain product). Is this possible?
2
2695
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 proper monitor connected to the desktop. Thanks Bill
7
4521
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 PC: Device Name: \\.\DISPLAY1 Bounds: {X=1152,Y=0,Width=1152,Height=864} Primary Screen: False
8
6111
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 open Table1, then Table2, Table2 apparently sits directly over Table1 and seems anchored so that I cannot move it "out of the way". Is this bahavior a restriction with Access as I do not have this problem with Excel or Word? Sheldon Potolsky
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10219
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.