test(windows): verify staged clipboard image contents

refs #4314
This commit is contained in:
Jonathan Liebig
2026-09-18 03:34:14 +02:00
parent a85a032059
commit 190eff4fc8
4 changed files with 22 additions and 4 deletions
+1
View File
@@ -165,6 +165,7 @@ namespace HerdrInputGauntlet {
} finally { CloseClipboard(); }
}
public static uint SetEmptyClipboardImage(IntPtr owner,string text) {
if(owner==IntPtr.Zero) throw new Exception("Clipboard owner is required");
if(!OpenClipboard(owner)) throw new Exception("Clipboard busy; refusing replacement");
IntPtr pngMemory=IntPtr.Zero,textMemory=IntPtr.Zero;
bool complete=false;