I\'m trying to get a process name from its pid. User is running as Administrator, UAC enabled, not elevated.
Some system processes, like services.exe
,
Have you tried PROCESS_QUERY_LIMITED_INFORMATION
instead? It requests a lower level of access that can provide at least the name of the executable. It allows you to call QueryFullProcessImageName
which provides the information you're looking for