Simon Jackson
|
ae426da271
|
feat: Phase 1 - C# migration scaffold (RDPWrap.Common shared library)
Add src-csharp/ solution structure for the Delphi-to-C# migration:
Solution & projects:
- RDPWrap.sln (VS 2022, x86/x64 configurations)
- Directory.Build.props (net8.0-windows, shared TFM/platform settings)
- RDPWrap.Common.csproj - shared class library
- RDPWInst.csproj - console installer (stub)
- RDPConf.csproj - WinForms config UI (stub)
- RDPCheck.csproj - WinForms RDP tester (stub)
RDPWrap.Common helpers (all translated from Delphi source):
- NativeMethods.cs - all P/Invoke: kernel32, advapi32, winsta.dll
- ArchHelper.cs - arch detection + WOW64 redirection
- RegistryHelper.cs - HKLM typed read/write with WOW64 view support
- ServiceHelper.cs - SCM wrappers (start-type, start, state, enum)
- FileVersionHelper.cs - file version reading via BCL FileVersionInfo
- ProcessHelper.cs - ExecWait (hidden) + KillProcess
- HttpHelper.cs - HttpClient replacing WinInet (sync + async)
- ResourceHelper.cs - embedded manifest resource extract/read
- IniHelper.cs - INI section presence check + support level
- SecurityHelper.cs - SID/ACL (GrantSidFullAccess) + token privileges
Also adds TODO.md tracking the full 44-item migration plan.
|
1 month ago |