I am using .Netframework 4.0 to run my Win Form application in Windows XP as well. I have created a 2 functions i-e func1() and func2(). Both functions listen/read web api (