As a general matter, it sounds like you are in valid status on an H-1B visa. You can apply for a green card now via your marriage to your wife. If married under two years when the case is determined, you will get only a two year green card that you can then extend later. It sounds like you are trying to wait until then to file, in order to get the ten year card. That is an option. Once you file for a green card in the US, you are given status under that. You are able to work on your H-1B as long as it is still valid and you don't violate any of the terms for that visa. At the same time, you apply for a work card that arrives 90 days after your green card is pending. You can then work on that as well.
Answered on Jun 14th, 2011 at 3:48 PM