Browse Source

Skeleton project

master
unknown 12 years ago
commit
770da85bc3

+ 4
- 0
.gitignore View File

@@ -0,0 +1,4 @@
1
+/*.suo
2
+/WindowMonitor/bin
3
+/WindowMonitor/obj
4
+/_ReSharper.*

+ 20
- 0
WindowMonitor.sln View File

@@ -0,0 +1,20 @@
1
+
2
+Microsoft Visual Studio Solution File, Format Version 11.00
3
+# Visual Studio 2010
4
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowMonitor", "WindowMonitor\WindowMonitor.csproj", "{41B32E2F-66A0-4F73-9705-E062EEA7C3ED}"
5
+EndProject
6
+Global
7
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
8
+		Debug|x86 = Debug|x86
9
+		Release|x86 = Release|x86
10
+	EndGlobalSection
11
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
12
+		{41B32E2F-66A0-4F73-9705-E062EEA7C3ED}.Debug|x86.ActiveCfg = Debug|x86
13
+		{41B32E2F-66A0-4F73-9705-E062EEA7C3ED}.Debug|x86.Build.0 = Debug|x86
14
+		{41B32E2F-66A0-4F73-9705-E062EEA7C3ED}.Release|x86.ActiveCfg = Release|x86
15
+		{41B32E2F-66A0-4F73-9705-E062EEA7C3ED}.Release|x86.Build.0 = Release|x86
16
+	EndGlobalSection
17
+	GlobalSection(SolutionProperties) = preSolution
18
+		HideSolutionNode = FALSE
19
+	EndGlobalSection
20
+EndGlobal

+ 24
- 0
WindowMonitor/Program.cs View File

@@ -0,0 +1,24 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.ServiceProcess;
5
+using System.Text;
6
+
7
+namespace WindowMonitor
8
+{
9
+    static class Program
10
+    {
11
+        /// <summary>
12
+        /// The main entry point for the application.
13
+        /// </summary>
14
+        static void Main()
15
+        {
16
+            ServiceBase[] ServicesToRun;
17
+            ServicesToRun = new ServiceBase[] 
18
+			{ 
19
+				new Service1() 
20
+			};
21
+            ServiceBase.Run(ServicesToRun);
22
+        }
23
+    }
24
+}

+ 36
- 0
WindowMonitor/Properties/AssemblyInfo.cs View File

@@ -0,0 +1,36 @@
1
+using System.Reflection;
2
+using System.Runtime.CompilerServices;
3
+using System.Runtime.InteropServices;
4
+
5
+// General Information about an assembly is controlled through the following 
6
+// set of attributes. Change these attribute values to modify the information
7
+// associated with an assembly.
8
+[assembly: AssemblyTitle("WindowMonitor")]
9
+[assembly: AssemblyDescription("")]
10
+[assembly: AssemblyConfiguration("")]
11
+[assembly: AssemblyCompany("")]
12
+[assembly: AssemblyProduct("WindowMonitor")]
13
+[assembly: AssemblyCopyright("Copyright ©  2011")]
14
+[assembly: AssemblyTrademark("")]
15
+[assembly: AssemblyCulture("")]
16
+
17
+// Setting ComVisible to false makes the types in this assembly not visible 
18
+// to COM components.  If you need to access a type in this assembly from 
19
+// COM, set the ComVisible attribute to true on that type.
20
+[assembly: ComVisible(false)]
21
+
22
+// The following GUID is for the ID of the typelib if this project is exposed to COM
23
+[assembly: Guid("705bdcf0-df34-4adf-af2a-3a9bd06400a3")]
24
+
25
+// Version information for an assembly consists of the following four values:
26
+//
27
+//      Major Version
28
+//      Minor Version 
29
+//      Build Number
30
+//      Revision
31
+//
32
+// You can specify all the values or you can default the Build and Revision Numbers 
33
+// by using the '*' as shown below:
34
+// [assembly: AssemblyVersion("1.0.*")]
35
+[assembly: AssemblyVersion("1.0.0.0")]
36
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 37
- 0
WindowMonitor/Service1.Designer.cs View File

@@ -0,0 +1,37 @@
1
+namespace WindowMonitor
2
+{
3
+    partial class Service1
4
+    {
5
+        /// <summary> 
6
+        /// Required designer variable.
7
+        /// </summary>
8
+        private System.ComponentModel.IContainer components = null;
9
+
10
+        /// <summary>
11
+        /// Clean up any resources being used.
12
+        /// </summary>
13
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14
+        protected override void Dispose(bool disposing)
15
+        {
16
+            if (disposing && (components != null))
17
+            {
18
+                components.Dispose();
19
+            }
20
+            base.Dispose(disposing);
21
+        }
22
+
23
+        #region Component Designer generated code
24
+
25
+        /// <summary> 
26
+        /// Required method for Designer support - do not modify 
27
+        /// the contents of this method with the code editor.
28
+        /// </summary>
29
+        private void InitializeComponent()
30
+        {
31
+            components = new System.ComponentModel.Container();
32
+            this.ServiceName = "Service1";
33
+        }
34
+
35
+        #endregion
36
+    }
37
+}

+ 27
- 0
WindowMonitor/Service1.cs View File

@@ -0,0 +1,27 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.ComponentModel;
4
+using System.Data;
5
+using System.Diagnostics;
6
+using System.Linq;
7
+using System.ServiceProcess;
8
+using System.Text;
9
+
10
+namespace WindowMonitor
11
+{
12
+    public partial class Service1 : ServiceBase
13
+    {
14
+        public Service1()
15
+        {
16
+            InitializeComponent();
17
+        }
18
+
19
+        protected override void OnStart(string[] args)
20
+        {
21
+        }
22
+
23
+        protected override void OnStop()
24
+        {
25
+        }
26
+    }
27
+}

+ 64
- 0
WindowMonitor/WindowMonitor.csproj View File

@@ -0,0 +1,64 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
+    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6
+    <ProductVersion>8.0.30703</ProductVersion>
7
+    <SchemaVersion>2.0</SchemaVersion>
8
+    <ProjectGuid>{41B32E2F-66A0-4F73-9705-E062EEA7C3ED}</ProjectGuid>
9
+    <OutputType>WinExe</OutputType>
10
+    <AppDesignerFolder>Properties</AppDesignerFolder>
11
+    <RootNamespace>WindowMonitor</RootNamespace>
12
+    <AssemblyName>WindowMonitor</AssemblyName>
13
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14
+    <TargetFrameworkProfile>Client</TargetFrameworkProfile>
15
+    <FileAlignment>512</FileAlignment>
16
+  </PropertyGroup>
17
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
18
+    <PlatformTarget>x86</PlatformTarget>
19
+    <DebugSymbols>true</DebugSymbols>
20
+    <DebugType>full</DebugType>
21
+    <Optimize>false</Optimize>
22
+    <OutputPath>bin\Debug\</OutputPath>
23
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
24
+    <ErrorReport>prompt</ErrorReport>
25
+    <WarningLevel>4</WarningLevel>
26
+  </PropertyGroup>
27
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
28
+    <PlatformTarget>x86</PlatformTarget>
29
+    <DebugType>pdbonly</DebugType>
30
+    <Optimize>true</Optimize>
31
+    <OutputPath>bin\Release\</OutputPath>
32
+    <DefineConstants>TRACE</DefineConstants>
33
+    <ErrorReport>prompt</ErrorReport>
34
+    <WarningLevel>4</WarningLevel>
35
+  </PropertyGroup>
36
+  <ItemGroup>
37
+    <Reference Include="System" />
38
+    <Reference Include="System.Core" />
39
+    <Reference Include="System.Xml.Linq" />
40
+    <Reference Include="System.Data.DataSetExtensions" />
41
+    <Reference Include="Microsoft.CSharp" />
42
+    <Reference Include="System.Data" />
43
+    <Reference Include="System.ServiceProcess" />
44
+    <Reference Include="System.Xml" />
45
+  </ItemGroup>
46
+  <ItemGroup>
47
+    <Compile Include="Service1.cs">
48
+      <SubType>Component</SubType>
49
+    </Compile>
50
+    <Compile Include="Service1.Designer.cs">
51
+      <DependentUpon>Service1.cs</DependentUpon>
52
+    </Compile>
53
+    <Compile Include="Program.cs" />
54
+    <Compile Include="Properties\AssemblyInfo.cs" />
55
+  </ItemGroup>
56
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
57
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
58
+       Other similar extension points exist, see Microsoft.Common.targets.
59
+  <Target Name="BeforeBuild">
60
+  </Target>
61
+  <Target Name="AfterBuild">
62
+  </Target>
63
+  -->
64
+</Project>

Loading…
Cancel
Save