My service program executes another instance of itself with, essentially, CreateProcess(GetCommandLine())
. The child process then uses OpenProcess
to get a handle to its parent process (so it can detect when the parent has stopped running). For some customers, OpenProcess
fails with ERROR_ACCESS_DENIED
. I'm trying to determine the reason and reproduce the circumstances for in-house testing.
I want something I can send to customers (either a program, or instructions for using programs that are already commonly installed on Windows servers) for them to run and generate a report that includes what account the service runs as and what privileges that account and its groups have been granted or denied. How can I collect that information from customers?