Ejemplo n.º 1
0
        public void Run(CancellationToken cancellationToken = default)
        {
            hwnd = NativeUtils.CreateMessageOnlyWindow();

            try {
                while (IsRunning && !cancellationToken.IsCancellationRequested)
                {
                    while (PInvoke.PeekMessage(out var msg, default, default, default, Constants.PM_REMOVE))