Consider the following scenario:

  • An application or a service calls the WTSQuerySessionInformation function to query some terminal server session related information.
  • The second parameter is 0 and the third parameter is WTSInitialProgram or WTSApplicationName.

In this scenario, under heavy stress conditions, the memory usage of the application or the service keeps increasing.
Further investigation indicates that the WTSQuerySessionInformation function leaks memory. Additionally, the GetLastError function returns an incorrect error code.

One Reply to “KB970910”

  1. Very good site you have here but I was curious about if you knew of any user discussion forums that cover the same topics discussed in this article? I’d really like to be a part of group where I can get opinions from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Bless you!

Leave a Reply