Location: Symbol Reference > Classes > TJwSecurityWindowStation Class
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityWindowStation Class
Pascal
TJwSecurityWindowStation = class;

TJwSecurityWindowStation provides access to window station api.

 
Name 
Description 
 
Create creates a new window station. It exists until all handles to it are closed.  
 
CreateByHandle creates a new instance and assigns an existing handle to it. By default the handle is destroyed on freeing. Set property DestroyWinSta manually to false. 
 
This is Destroy, a member of class TJwSecurityWindowStation. 
 
Open 
Open opens a window station using a name and desired access rights. The window station must be of the current session.  
Name 
Description 
The following tables list the members exposed by TJwSecurityWindowStation. 
The methods of the TJwSecurityWindowStation class are listed here. 
The properties of the TJwSecurityWindowStation class are listed here. 
 
Name 
Description 
 
RevertWindowStation reverts to the saved window station from SetWindowStation
 
SetWindowStation changes the current window station for the process to the given on in the current instance. 
 
Name 
Description 
 
DesktopNames returns an arrays of desktop names (TJwString) This method raises EJwsclWinCallFailedException if a call to EnumDesktops failed. 
 
DestroyWinSta defines whether a call to CloseHandle is done on instance destroying (true) or not. 
 
Flags sets or gets window station flags. This method raises EJwsclWinCallFailedException if a call to SetUserObjectInformation or GetUserObjectInformation failed. 
 
Handle contains the handle of the window station. Handle is 0 if the window station was not opened or created. 
 
Name 
Name returns the name of the window station. This method raises EJwsclWinCallFailedException if a call to GetUserObjectInformation failed. 
 
ObjectType returns a string of this object ("window station") This method raises EJwsclWinCallFailedException if a call to GetUserObjectInformation failed. 
 
SecurityDescriptor[Info sets or gets the security descriptor of the current window station. This property uses a parameter Info to set which information is to be set or get. ex. SecurityDescriptor[[sif_XXXX,sif_XXXX]]
If used for getting the SD the caller is responsible for freeing the instance.
Getting the security parameter uses TJwSecureGeneralObject.GetSecurityInfo , setting the security parameter uses TJwSecureGeneralObject.SetSecurityInfo , see the methods for more informations and errors. 
 
UserSID returns the user of this window station. This method raises EJwsclWinCallFailedException if a call to GetUserObjectInformation failed. 
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!