add operator

This commit is contained in:
qhy040404
2024-04-28 14:33:31 +08:00
parent 588aba1395
commit bbc2d7655c
2 changed files with 3 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ internal sealed class WindowSubclass : IDisposable
{
windowProc = OnSubclassProcedure;
bool windowHooked = SetWindowSubclass(options.Hwnd, windowProc, WindowSubclassId, 0);
bool propHooked = SetPropW(options.Hwnd, "NonRudeHWND", 1);
bool propHooked = SetPropW(options.Hwnd, "NonRudeHWND", BOOL.TRUE);
hotKeyController.RegisterAll();
bool titleBarHooked = true;

View File

@@ -8,4 +8,6 @@ internal readonly struct HANDLE
public readonly nint Value;
public static unsafe implicit operator HANDLE(nint value) => *(HANDLE*)&value;
public static implicit operator HANDLE(BOOL value) => value.Value;
}