Skip to content

Commit

Permalink
Issue: Still have the issue "Access Denied" while trying to kill a Pr…
Browse files Browse the repository at this point in the history
…ocess
  • Loading branch information
MbarkT3STO committed Apr 5, 2024
1 parent 4dc000b commit b32f5fc
Show file tree
Hide file tree
Showing 279 changed files with 7,906 additions and 85 deletions.
Binary file added .vs/OfficeDRPC/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/OfficeDRPC/v17/.futdcache.v2
Binary file not shown.
Binary file modified .vs/OfficeDRPC/v17/.suo
Binary file not shown.
70 changes: 43 additions & 27 deletions .vs/OfficeDRPC/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
"WorkspaceRootPath": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\officedrpccommander\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|c:\\users\\mbark.azuread\\source\\repos\\mbarkt3sto\\officedrpc\\officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{A0BC55D0-6A1E-4F58-9224-7A1D70F934F0}|DRPCWorker\\DRPCWorker.csproj|c:\\users\\mbark.azuread\\source\\repos\\mbarkt3sto\\officedrpc\\drpcworker\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A0BC55D0-6A1E-4F58-9224-7A1D70F934F0}|DRPCWorker\\DRPCWorker.csproj|solutionrelative:drpcworker\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\officedrpccommander\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|c:\\users\\mbark.azuread\\source\\repos\\mbarkt3sto\\officedrpc\\officedrpccommander\\app.manifest||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
"RelativeMoniker": "D:0:0:{56AD1A2F-F1B9-4B14-993E-7BDE13E5FDBA}|OfficeDRPCCommander\\OfficeDRPCCommander.csproj|solutionrelative:officedrpccommander\\app.manifest||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
"AbsoluteMoniker": "D:0:0:{A0BC55D0-6A1E-4F58-9224-7A1D70F934F0}|DRPCWorker\\DRPCWorker.csproj|c:\\users\\mbark.azuread\\source\\repos\\mbarkt3sto\\officedrpc\\drpcworker\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A0BC55D0-6A1E-4F58-9224-7A1D70F934F0}|DRPCWorker\\DRPCWorker.csproj|solutionrelative:drpcworker\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
Expand All @@ -22,7 +26,7 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 2,
"SelectedChildIndex": 5,
"Children": [
{
"$type": "Bookmark",
Expand All @@ -34,41 +38,53 @@
},
{
"$type": "Document",
"DocumentIndex": 0,
"DocumentIndex": 3,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\DRPCWorker\\Program.cs",
"RelativeDocumentMoniker": "DRPCWorker\\Program.cs",
"ToolTip": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\DRPCWorker\\Program.cs",
"RelativeToolTip": "DRPCWorker\\Program.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA0AAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-04T20:37:37.972Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Worker.cs",
"DocumentMoniker": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\DRPCWorker\\Worker.cs",
"RelativeDocumentMoniker": "DRPCWorker\\Worker.cs",
"ToolTip": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\DRPCWorker\\Worker.cs",
"RelativeToolTip": "DRPCWorker\\Worker.cs",
"ViewState": "AQIAAFgAAAAAAAAAAAAwwGAAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-04T17:04:56.877Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\Program.cs",
"RelativeDocumentMoniker": "OfficeDRPCCommander\\Program.cs",
"ToolTip": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\Program.cs",
"RelativeToolTip": "OfficeDRPCCommander\\Program.cs",
"ViewState": "AQIAACUAAAAAAAAAAAAqwEsAAAAgAAAA",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA0AAAAmAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-03T10:56:56.524Z",
"EditorCaption": ""
"WhenOpened": "2024-04-04T20:37:46.95Z"
},
{
"$type": "Document",
"DocumentIndex": 1,
"DocumentIndex": 0,
"Title": "Worker.cs",
"DocumentMoniker": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\Worker.cs",
"RelativeDocumentMoniker": "OfficeDRPCCommander\\Worker.cs",
"ToolTip": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\Worker.cs",
"RelativeToolTip": "OfficeDRPCCommander\\Worker.cs",
"ViewState": "AQIAADYAAAAAAAAAAAAAAD4AAAAkAAAA",
"ViewState": "AQIAADAAAAAAAAAAAAAwwDcAAAAMAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-03T10:35:19.714Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "app.manifest",
"DocumentMoniker": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\app.manifest",
"RelativeDocumentMoniker": "OfficeDRPCCommander\\app.manifest",
"ToolTip": "C:\\Users\\MBARK.AzureAD\\source\\repos\\MbarkT3STO\\OfficeDRPC\\OfficeDRPCCommander\\app.manifest",
"RelativeToolTip": "OfficeDRPCCommander\\app.manifest",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAoAAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001203|",
"WhenOpened": "2024-04-04T08:01:13.531Z",
"WhenOpened": "2024-04-05T07:28:35.81Z",
"EditorCaption": ""
}
]
Expand Down
Binary file added .vs/ProjectEvaluation/officedrpc.metadata.v7.bin
Binary file not shown.
Binary file added .vs/ProjectEvaluation/officedrpc.projects.v7.bin
Binary file not shown.
Binary file modified AccessDRPC/bin/Debug/MBDRPC.dll
Binary file not shown.
Binary file modified AccessDRPC/bin/Debug/MBDRPC.pdb
Binary file not shown.
Binary file modified AccessDRPC/obj/Debug/AccessDRPC.csproj.AssemblyReference.cache
Binary file not shown.
27 changes: 27 additions & 0 deletions DRPCWorker/DRPCWorker.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk.Worker">

<PropertyGroup>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>dotnet-DRPCWorker-205e0da0-89f0-4d82-a490-e0872b64c101</UserSecretsId>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="System.Diagnostics.Process" Version="4.3.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AccessDRPC\AccessDRPC.csproj" />
<ProjectReference Include="..\ExcelDRPC\ExcelDRPC.csproj" />
<ProjectReference Include="..\OfficeDRPC\OfficeDRPC.csproj" />
<ProjectReference Include="..\OnedriveDRPC\OnedriveDRPC.csproj" />
<ProjectReference Include="..\OutlookDRPC\OutlookDRPC.csproj" />
<ProjectReference Include="..\PowerBiDRPC\PowerBiDRPC.csproj" />
<ProjectReference Include="..\PowerPointDRPC\PowerPointDRPC.csproj" />
<ProjectReference Include="..\PublisherDRPC\PublisherDRPC.csproj" />
<ProjectReference Include="..\WhiteboardDRPC\WhiteboardDRPC.csproj" />
</ItemGroup>
</Project>
19 changes: 19 additions & 0 deletions DRPCWorker/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System.Reflection;
using System.Runtime.InteropServices;
using DRPCWorker;
using Microsoft.Win32;

var builder = Host.CreateApplicationBuilder(args);

builder.Services.AddHostedService<Worker>();


var host = builder.Build();

host.Run();

// Register the app to be auto startup
using (var key = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true))
{
key?.SetValue("MBVRK.OfficeDRPCWorker", Assembly.GetExecutingAssembly().Location);
}
12 changes: 12 additions & 0 deletions DRPCWorker/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"DRPCWorker": {
"commandName": "Project",
//"dotnetRunMessages": true,
"environmentVariables": {
"DOTNET_ENVIRONMENT": "Development"
}
}
}
}
Loading

0 comments on commit b32f5fc

Please sign in to comment.