You develop an application by using the WTSWaitSystemEvent function in Windows Vista or Windows Server 2008. You set the value of the EventMask parameter to WTS_EVENT_FLUSH in the WTSWaitSystemEvent function. The WTS_Event_Flush value enables you to receive all pending WTSWaitSystemEvent function calls on the specified terminal server handle. However, when the application runs in Windows Vista or Windows Server 2008 and the target server runs Windows XP, pending calls to the WTSWaitSystemEvent function do not return as expected.

When this problem occurs, the application that uses the WTSWaitSystemEvent function will crash. Therefore, you must end the corresponding process in Task Manager. This recovers the application.


  • In Windows Vista RTM, a function fails when the target server is a local computer, or when it is a remote computer that is running Windows XP. However, hotfix 941561 resolves this problem. After you apply hotfix 941561, the function works both locally and remotely.
  • In Windows Vista Service Pack 1 (SP1) or in Windows Server 2008, the function works locally. However, it fails if the target server is running Windows XP.

One Reply to “KB971311”

  1. An impressive share, I just given this onto a colleague who was doing a little bit evaluation on this. And he actually purchased me breakfast because I found it for him.. smile. So let me reword that: Thnx for the treat! But yeah Thnkx for spending the time to debate this, I really feel strongly about it and love reading more on this topic. If attainable, as you change into expertise, would you mind updating your blog with more details? It is highly helpful for me. Huge thumb up for this blog publish!


Leave a Reply