Hi SKSOLE,
Window ID? You mean the ID of the InfoPath Window? You can get the username of the logged in user - there's an InfoPath command for that. If you need SharePoint user credentials you can use SharePoints web services to get it. If you want Active Directory information, Qdabra has a Active Directory Web Service that will return that (Qdabra is sponsor of this free forum). But, I am guessing that I don't understand your question. Sorry about that.