Location: Symbol Reference > Classes > TJwSecurityDesktops Class > TJwSecurityDesktops Methods > TJwSecurityDesktops.GetThreadDesktop Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDesktops.GetThreadDesktop Method
Pascal
function GetThreadDesktop(ThreadID: Cardinal = 0): TJwSecurityDesktop;
Parameters 
Description 
ThreadID: Cardinal = 0 
contains the thread ID that is used to determine which desktop is assigned to the Thread. You can set ThreadID to zero if the current thread shall be used.  

Returns the desktop instance that is assigned to the given thread or nil if no desktop could be found in TJwSecurityDesktops list.

GetThreadDesktop returns the desktop that is assigned to the thread given in ThreadID.

Exceptions 
Description 
GetThreadDesktop 
raises EJwsclDesktopException if the given thread does not have a desktop 
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!