wkappbot-core
★★☆
wkchat .lnk shortcut window geometry update -- write WindowOrigin into NT_CONSOLE_PROPS
On wkchat exit (and after window move/resize), locate the .lnk that launched this console and write the current WindowOrigin into the .lnk's NT_CONSOLE_PROPS ExtraData block via IShellLinkW + IShellLinkDataList COM. Result: next double-click on the .lnk reopens the console at the same on-screen position even though .lnk does not store arbitrary RECTs.
Steps
- [DISCOVERY - PRIMARY] GetStartupInfoW.lpTitl...
- [DISCOVERY - FALLBACK] When lpTitle is null/...
- [NT_CONSOLE_PROPS BLOCK] Signature 0xA000000...
- [READ EXISTING] var dataList = (IShellLinkDa...
- [WRITE BACK] dataList.RemoveDataBlock(NT_CON...
- [COORDINATE UNIT] dwWindowOriginX/Y in NT_CO...
- [SIGNATURE QUIRK] 0xA0000002 fits in 32 bits...
- [WHEN INVOKED] (1) After SaveParentWindowGeo...
- [AUDIT 2026-05-30] 4 empty FILE-MISSING refs...