Location: Symbol Reference > Classes > TJwWTSEventThread Class
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwWTSEventThread Class
Pascal
TJwWTSEventThread = class(TJwThread);

The TJwWTSEventThread Thread waits for Terminal Server Events and notifies the caller by firing Events. 

It's not necessary to manually create an TJwWTSEventThread Thread because TJwTerminalServer does this automatically after a successfull call to the EnumerateSessions function. 

TJwWTSEventThread is Owned by a TJwTerminalServer instance 

TJwWTSEventThread uses the WTSWaitSystemEvent API Call which can hang on Windows Vista after sending a WTS_FLUSH event. The bug was first corrected in winsta.dll version 6.0.6000.20664.

http://www.remkoweijnen.nl/blog/2008/01/25/using-wtswaitsystemevent/

 
Name 
Description 
 
Create create a thread instance.  
 
This is Destroy, a member of class TJwThread. 
TJwWTSEventThread Class
 
Name 
Description 
 
Call Create to create a @classname Thread.  
Name 
Description 
The following tables list the members exposed by TJwThread. 
The methods of the TJwThread class are listed here. 
The properties of the TJwThread class are listed here. 
TJwWTSEventThread Class
Name 
Description 
The following tables list the members exposed by TJwWTSEventThread. 
The methods of the TJwWTSEventThread class are listed here. 
 
Name 
Description 
 
Execute is the main execution procedure of thread. Override it and call it at first. 
 
This is GetReturnValue, a member of class TJwThread. 
 
WaitWithTimeOut waits for the thread to finish or until a timeout occurs.  
TJwWTSEventThread Class
 
Name 
Description 
 
 
 
Name 
Description 
 
Name 
Name sets or gets the threads name. The name is retrieved from internal variable. Changing the thread's name using foreign code does not afect this property. 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!