dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

Kernel32.QueryFullProcessImageName broken on Windows 7 #623

Closed josephmoresena closed 1 year ago

josephmoresena commented 1 year ago

When trying to invoke Kernel32.QueryFullProcessImageName on Windows 7, the call fails due to missing api-ms-win-core-psapi-l1-1-0.dll.

AArnott commented 1 year ago

Can you try CsWin32 instead?

AArnott commented 1 year ago

Also, Windows 7 hasn't been under Microsoft support for a long time.