/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/MouseUtils/MouseJump.Common/Interop/Win32WindowClass.cs
38 строк
1 KB
Michael Clayton
Ready for Review - [Mouse Jump] - port upstream WinUI3 code to Mouse Jump (microsoft#48290) (#48393)
07 авг 2026, 08:34
Не верифицирован
07 авг 2026, 08:34
e0010c5
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Windows.Win32.Foundation; using Windows.Win32.UI.WindowsAndMessaging; namespace MouseJump.Common.Interop; /// <summary> /// Wrapper around a Windows window class that can be passed to /// external assemblies to manage WNDPROC delegate lifetime without /// exposing internals. /// </summary> public sealed class Win32WindowClass { internal Win32WindowClass(ushort classAtom, string className, Win32WindowProc windowProc) { this.ClassAtom = classAtom; this.ClassName = className ?? throw new ArgumentNullException(nameof(className)); this.WindowProc = windowProc ?? throw new ArgumentNullException(nameof(windowProc)); } internal ushort ClassAtom { get; } public string ClassName { get; } internal Win32WindowProc WindowProc { get; } }