I want to get the process id of a running Metro app programatically via C++ code, from another process. I have the static information of that app like name, full name etc. What
You can use GetCurrentProcessId to get process id.