Skip to content

Commit

Permalink
Made a proper class library, and added a demo project. Fixes #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
murrayju committed Mar 22, 2015
1 parent bd78b3a commit 63c03d8
Show file tree
Hide file tree
Showing 18 changed files with 819 additions and 266 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
obj/
solution.sln.ide/
bin/
*.InstallLog
265 changes: 0 additions & 265 deletions CreateProcessAsUser.cs

This file was deleted.

6 changes: 6 additions & 0 deletions DemoService/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
37 changes: 37 additions & 0 deletions DemoService/DemoService.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions DemoService/DemoService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using murrayju.ProcessExtensions;
using System.ServiceProcess;

namespace demo
{
public partial class DemoService : ServiceBase
{
public DemoService()
{
InitializeComponent();
}

protected override void OnStart(string[] args)
{
ProcessExtensions.StartProcessAsCurrentUser("calc.exe");
}

protected override void OnStop()
{
}
}
}
Loading

0 comments on commit 63c03d8

Please sign in to comment.