Given a HANDLE (or ProcessID) to process ‘A’ is it possible on Win32 for an unrelated process ‘B’ to determine the current working directory of process ‘A’ ?
Share
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.
I thought this may be possible using the same technique you can use to get an external processes command line and there does seem to be a
_RTL_USER_PROCESS_PARAMETERS->CurrentDirectoryPathwhich sounds promising.(The example doesn’t state that the APIs are largely undocumented and that they are not future proof, so YMMV)