Depending on what exactly you're trying to do, you could look at the
Debugger.IsAttached property, or you could check your process's parent.
As far as I know, you'd have to use WMI or the native Win32 API (via
p/invoke) to get the latter.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.