Skip to content

Commit

Permalink
Infrastructure Preparation 305
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 2, 2024
1 parent d1d7ea9 commit cd2fdd6
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Skylark" Version="3.1.4.8" />
<PackageReference Include="Skylark.Wing" Version="3.1.7.3" />
<PackageReference Include="Skylark.Wing" Version="3.1.7.4" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Skylark.Clipboard/Skylark.Clipboard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>9.0.0-beta.24531.1</Version>
<Version>9.0.0-beta.24531.2</Version>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Skylark.DNS/Skylark.DNS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>9.0.0-beta.24531.1</Version>
<Version>9.0.0-beta.24531.2</Version>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Skylark.Standard/Skylark.Standard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>9.0.0-beta.24531.1</Version>
<Version>9.0.0-beta.24531.2</Version>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Skylark.Uptime/Skylark.Uptime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// Creator: Taiizor
// Website: www.vegalya.com
// Created: 27.Feb.2023
// Changed: 31.Oct.2024
// Changed: 02.Nov.2024
// Version: 3.1.5.4
//
// |---------DO-NOT-REMOVE---------|
Expand Down
2 changes: 1 addition & 1 deletion src/Skylark.Uptime/Skylark.Uptime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>9.0.0-beta.24531.1</Version>
<Version>9.0.0-beta.24531.2</Version>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
24 changes: 9 additions & 15 deletions src/Skylark.Wing/Helper/EventSubscriptionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ namespace Skylark.Wing.Helper
/// <summary>
/// EventSubscriptionManager Class - Handles event subscription logic
/// </summary>
public class EventSubscriptionManager
public class EventSubscriptionManager(SWIIEL eventListener)
{
private readonly SWIIEL _eventListener;
private SWIIESM _eventSystem;

public EventSubscriptionManager(SWIIEL eventListener)
{
_eventListener = eventListener;
}

public HRESULT Initialize()
{
HRESULT hr = HRESULT.E_FAIL;
Expand Down Expand Up @@ -83,7 +77,7 @@ public HRESULT Uninitialize()
// HResult = 0x80070005
// Message = Accès refusé. (Exception de HRESULT: 0x80070005(E_ACCESSDENIED))

hr = _eventSystem.Remove("EventSystem.EventSubscription", "EventClassID={D5978630-5B9F-11D1-8DD2-00AA004ABD5E}", out int errorIndex);
hr = _eventSystem.Remove("EventSystem.EventSubscription", "EventClassID={D5978630-5B9F-11D1-8DD2-00AA004ABD5E}", out _);

Marshal.ReleaseComObject(_eventSystem);
}
Expand Down Expand Up @@ -113,37 +107,37 @@ public HRESULT Invoke(int dispIdMember, ref Guid riid, int lcid, int dwFlags, DI

public HRESULT Logon(string userName)
{
return _eventListener.OnLogon(userName);
return eventListener.OnLogon(userName);
}

public HRESULT Logoff(string userName)
{
return _eventListener.OnLogoff(userName);
return eventListener.OnLogoff(userName);
}

public HRESULT StartShell(string userName)
{
return _eventListener.OnStartShell(userName);
return eventListener.OnStartShell(userName);
}

public HRESULT DisplayLock(string userName)
{
return _eventListener.OnDisplayLock(userName);
return eventListener.OnDisplayLock(userName);
}

public HRESULT DisplayUnlock(string userName)
{
return _eventListener.OnDisplayUnlock(userName);
return eventListener.OnDisplayUnlock(userName);
}

public HRESULT StartScreenSaver(string userName)
{
return _eventListener.OnStartScreenSaver(userName);
return eventListener.OnStartScreenSaver(userName);
}

public HRESULT StopScreenSaver(string userName)
{
return _eventListener.OnStopScreenSaver(userName);
return eventListener.OnStopScreenSaver(userName);
}
}
}
4 changes: 2 additions & 2 deletions src/Skylark.Wing/Skylark.Wing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
// Creator: Taiizor
// Website: www.vegalya.com
// Created: 17.Jun.2023
// Changed: 31.Oct.2024
// Version: 3.1.7.4
// Changed: 02.Nov.2024
// Version: 3.1.7.5
//
// |---------DO-NOT-REMOVE---------|

Expand Down
4 changes: 2 additions & 2 deletions src/Skylark.Wing/Skylark.Wing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<PropertyGroup>
<ApplicationIcon>Resources\Skylark.Wing.ico</ApplicationIcon>
<Version>3.1.7.4</Version>
<Version>3.1.7.5</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>Skylark.Wing</Title>
Expand Down Expand Up @@ -51,7 +51,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>9.0.0-beta.24531.1</Version>
<Version>9.0.0-beta.24531.2</Version>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Skylark/Skylark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Creator: Taiizor
// Website: www.vegalya.com
// Created: 03.Jan.2023
// Changed: 31.Oct.2024
// Changed: 02.Nov.2024
// Version: 3.1.4.9
//
// |---------DO-NOT-REMOVE---------|
Expand Down
2 changes: 1 addition & 1 deletion src/Skylark/Skylark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<Version>9.0.0-beta.24531.1</Version>
<Version>9.0.0-beta.24531.2</Version>
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down

0 comments on commit cd2fdd6

Please sign in to comment.