feat: add fallback to process inspection so it doesn't fail on high privilege processes#46
Conversation
…rivilege processes
WalkthroughIn main.cpp, the PIDinspect function now implements a two-step process handle acquisition strategy. When the initial OpenProcess call with PROCESS_ALL_ACCESS fails due to access denied, the code attempts OpenProcess again with PROCESS_QUERY_LIMITED_INFORMATION permissions. This fallback mechanism allows information retrieval from restricted processes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.