Skip to content

Commit

Permalink
feat: To latest Microsoft.Windows.CsWin32.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Aug 1, 2022
1 parent 5a32972 commit df28046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libs/H.Hooks/H.Hooks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.1.635-beta">
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.2.10-beta">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/H.Hooks/Hook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public unsafe void Start()
var msg = new MSG();
_ = PInvoke.PeekMessage(
lpMsg: &msg,
hWnd: new HWND(-1),
hWnd: new HWND(new IntPtr(-1)),
wMsgFilterMin: 0,
wMsgFilterMax: 0,
wRemoveMsg: PEEK_MESSAGE_REMOVE_TYPE.PM_NOREMOVE);
Expand All @@ -149,7 +149,7 @@ public unsafe void Start()
{
_ = PInvoke.GetMessage(
lpMsg: &msg,
hWnd: new HWND(-1),
hWnd: new HWND(new IntPtr(-1)),
wMsgFilterMin: 0,
wMsgFilterMax: 0).EnsureNonMinusOne();
if (msg.message == PInvoke.WM_QUIT)
Expand Down

0 comments on commit df28046

Please sign in to comment.