Is it possible to define the working directory of another process?

Given that HANDLE (or ProcessID) processes "A", is it possible on Win32 for the unbound process "B" to determine the current working directory of process "A"?

+3
source share
2 answers

I thought it was possible using the same technique that you can use to get an external command line procedure , and that seems _RTL_USER_PROCESS_PARAMETERS->CurrentDirectoryPathto sound promising.

(The example does not indicate that the APIs are mostly undocumented and that they are not future evidence , therefore YMMV)

+1
source

Source: https://habr.com/ru/post/1748377/


All Articles