I read under the Microsoft winHTTP5.1 general guidelines the following.
Thanks.
ToddWW
Does this mean that the internal state of winHTTP will be corrupted permanently ? Is there a way to back up the .dll and restore it if there is a problem ?Caution WinHTTP is not re-entrant except during asynchronous completion callback! This means that while a thread has a call pending to one of the WinHTTP functions such as WinHttpSendRequest, WinHttoReceiveResponse, WinHttpQueryDataAvailable, WinHttpSendData, or WinHttpWriteData, it must never call WinHTTP a second time until the first call has completed. One scenario under which a second call could occur is as follows: If an application queues an Asynchronous Procedure Call (APC) to the thread that's calling into WinHTTP, and if WinHTTP performs an alertable wait internally, the APC will get a chance to run. Now if the APC routine happens also to call WinHTTP, it re-enters the WinHTTP API, and the internal state of WinHTTP can be corrupted.
Thanks.
ToddWW