I am working on a MS Windows C# Winform project and I cannot get the PPID (Parent Process ID).
I’ve found many solutions but none that seem to work with said OS and language.
How can I get PPID?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you can use System.Management, it’s easy enough:
Otherwise you may have to resort to P/Invoke calls via CreateToolhelp32Snapshot like this