Severity: Info
Files:
src/Servy.Core/Helpers/ProcessHelper.cs
src/Servy.Core/Helpers/ProcessKiller.cs
Description:
Both files independently declare identical P/Invoke signatures and structs for CreateToolhelp32Snapshot, Process32First, Process32Next, CloseHandle, and PROCESSENTRY32. Any struct layout or calling-convention fix must be applied in two places — changes to one do not propagate to the other.
Suggested fix:
Consolidate into a single shared ProcessSnapshot internal utility class or add these to the existing NativeMethods class.
Severity: Info
Files:
src/Servy.Core/Helpers/ProcessHelper.cssrc/Servy.Core/Helpers/ProcessKiller.csDescription:
Both files independently declare identical P/Invoke signatures and structs for
CreateToolhelp32Snapshot,Process32First,Process32Next,CloseHandle, andPROCESSENTRY32. Any struct layout or calling-convention fix must be applied in two places — changes to one do not propagate to the other.Suggested fix:
Consolidate into a single shared
ProcessSnapshotinternal utility class or add these to the existingNativeMethodsclass.