Yep, there are some alternatives. First what comes into my mind it's a CONTEXT_INFO:
http://msdn.microsoft.com/en-us/library/ms180125.aspx
_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
(So many miracle inventions provided by MS to us...)
How to post your question to get the best and quick help[/url]