Copied from ADO task 14483919 Since QueryFullProcessName does not return the required buffer size, we need to retry this function in a loop similar to wil::GetModuleFileNameExW.