<p>I need a way to determine whether the computer running my program is joined to any domain. It doesn't matter what specific domain it is part of, just whether it is connected to anything. I'm coding in vc++ against the Win32 API.</p>

what about from the name of the computer?
edit:
this was a crapy 'answer' from way back. What I meant was cheching for the form
```
domain\name
```
in the computer name. That of course implies that you do know the name of the domain, it does not solves the issue of just knowing if the computer is in any domain.