Here is what I know...
If you do not have a green card, you can start only C type company (C type incorporation). In that case, you cannot be an employee of (and hence cannot draw a salary from) your company. You may employ other people, though. This option is open even for people with H1 or those residing elsewhere. In this, you can only take profits from the company (after the company has paid tax) in your name and then pay personal income tax on those profits (this is kind of double taxing).
If you are a GC holder, then u can start S type corporation. IN this case, you can pay yourself a salary and also take profits (before tax) as your personal income and then pay tax on the consolidated amount (ur salary and profit u take). The only distinguishing factor here is that all your retirement investment will depend on what salary you draw.
Contact a good Accountant for more details. I am telling this from whatever I know, and I am not a certified accountant.
Do your own research and homework too.
Best of luck.
StillWaiting...