clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -2,13 +2,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <ntlite/display.h>
|
||||
#include <ntlite/handle.h>
|
||||
#include <ntlite/input.h>
|
||||
#include <ntlite/status.h>
|
||||
|
||||
#define NTL_DESKTOP_PROTOCOL_VERSION 1u
|
||||
#define NTL_DESKTOP_PROTOCOL_VERSION 2u
|
||||
#define NTL_DESKTOP_SERVICE_PATH "/Sessions/0/Desktop"
|
||||
|
||||
#define NTL_DESKTOP_FLAG_NONE 0x00000000u
|
||||
@@ -58,10 +60,10 @@ typedef struct NTL_DESKTOP_REPLY {
|
||||
uint32_t Reserved;
|
||||
NTL_WINDOW_ID WindowId;
|
||||
DISPLAY_RECT Bounds;
|
||||
uint32_t Visible;
|
||||
uint32_t Focused;
|
||||
uint32_t Captured;
|
||||
uint32_t HasSurface;
|
||||
bool Visible;
|
||||
bool Focused;
|
||||
bool Captured;
|
||||
bool HasSurface;
|
||||
uint32_t SurfaceWidth;
|
||||
uint32_t SurfaceHeight;
|
||||
} NTL_DESKTOP_REPLY;
|
||||
@@ -79,6 +81,16 @@ typedef struct NTL_DESKTOP_EVENT {
|
||||
INPUT_MOUSE_EVENT Mouse;
|
||||
} NTL_DESKTOP_EVENT;
|
||||
|
||||
// DWM and clients exchange these versioned fixed-layout protocol messages.
|
||||
_Static_assert(sizeof(NTL_DESKTOP_REQUEST) == 48u, "NTL_DESKTOP_REQUEST ABI size changed");
|
||||
_Static_assert(offsetof(NTL_DESKTOP_REQUEST, WindowId) == 16u, "NTL_DESKTOP_REQUEST window offset changed");
|
||||
_Static_assert(offsetof(NTL_DESKTOP_REPLY, Visible) == 48u, "NTL_DESKTOP_REPLY Visible offset changed");
|
||||
_Static_assert(offsetof(NTL_DESKTOP_REPLY, SurfaceWidth) == 52u, "NTL_DESKTOP_REPLY SurfaceWidth offset changed");
|
||||
_Static_assert(sizeof(NTL_DESKTOP_REPLY) == 64u, "NTL_DESKTOP_REPLY ABI size changed");
|
||||
_Static_assert(offsetof(NTL_DESKTOP_REPLY, Status) == 16u, "NTL_DESKTOP_REPLY status offset changed");
|
||||
_Static_assert(sizeof(NTL_DESKTOP_EVENT) == 56u, "NTL_DESKTOP_EVENT ABI size changed");
|
||||
_Static_assert(offsetof(NTL_DESKTOP_EVENT, Key) == 32u, "NTL_DESKTOP_EVENT key offset changed");
|
||||
|
||||
#if defined(NTL_SYSCALL_STATIC)
|
||||
#define NTL_DESKTOP_API
|
||||
#elif defined(NTL_SYSCALL_BUILD)
|
||||
@@ -100,7 +112,7 @@ NTL_DESKTOP_API KSTATUS NtlDesktopDestroyWindow(SYS_HANDLE session, NTL_WINDOW_I
|
||||
NTL_DESKTOP_API KSTATUS NtlDesktopSetBounds(SYS_HANDLE session, NTL_WINDOW_ID window, const DISPLAY_RECT* bounds);
|
||||
|
||||
// Shows or hides one window without changing its z-order.
|
||||
NTL_DESKTOP_API KSTATUS NtlDesktopSetVisible(SYS_HANDLE session, NTL_WINDOW_ID window, uint32_t visible);
|
||||
NTL_DESKTOP_API KSTATUS NtlDesktopSetVisible(SYS_HANDLE session, NTL_WINDOW_ID window, bool visible);
|
||||
|
||||
// Moves one window to the top of the z-order.
|
||||
NTL_DESKTOP_API KSTATUS NtlDesktopRaiseWindow(SYS_HANDLE session, NTL_WINDOW_ID window);
|
||||
|
||||
Reference in new issue
Block a user