23 lines
849 B
Markdown
23 lines
849 B
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- Common/DTS.CommonCore/Classes/WinApi/WindowsAPIHelpers.cs
|
||
|
|
generated_at: "2026-04-17T16:26:10.768750+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "cc8a243ee7ad0716"
|
||
|
|
---
|
||
|
|
|
||
|
|
# WinApi
|
||
|
|
|
||
|
|
### Purpose
|
||
|
|
This module provides Windows API interop helpers for window management and monitor handling. It wraps native Win32 structures and functions to enable proper multi-monitor support and window sizing behavior in WPF applications, particularly for handling maximized window positioning relative to the work area (excluding taskbar).
|
||
|
|
|
||
|
|
### Public Interface
|
||
|
|
- **`POINT` (struct)**
|
||
|
|
- `public int x` - X coordinate.
|
||
|
|
- `public int y` - Y coordinate.
|
||
|
|
- `public POINT(int x, int y)` - Constructor.
|
||
|
|
|
||
|
|
- **`MINMAXINFO` (struct)**
|
||
|
|
- `public POINT ptReserved` - Reserved for system use.
|
||
|
|
- `public POINT ptMaxSize` - Maximum size
|