Location: Symbol Reference > Classes > TJwSecurityDesktop Class > TJwSecurityDesktop.Create Constructor
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDesktop.Create Constructor
Pascal
constructor Create(const aParent: TJwSecurityDesktops; const aFlag: TJwDesktopCreationFlag; const aCloseOnDestroy: boolean; const aName: TJwString; const DesktopFlags: TJwSecurityDesktopFlags; const doInherit: boolean; const aDesiredAccess: ACCESS_MASK; const aSecurityDescriptor: TJwSecurityDescriptor); overload;
Parameters 
Description 
const aParent: TJwSecurityDesktops 
Contains the parent instance that administer the desktop. You can set it to nil if you want to administer the desktop yourself. In that case you must free it by yourself. In the other case you must not call Free because TJwSecurityDesktops(aParent) calls it if it freed.
 
const aFlag: TJwDesktopCreationFlag 
Contains the type of work you want to do : Create or Open a desktop. See TJwSecurityDesktopFlags for more information.  
const aCloseOnDestroy: boolean 
Contains a flag that determines if the desktop handle shall be closed if the desktop instance is freed. That case is used if aCloseOnDestroy is TRUE otherwise the handle will exists until you close it by yourself or the application is closed.  
const aName: TJwString 
Contains the name of an existing Desktop. A desktop name is case sensitive.  
const DesktopFlags: TJwSecurityDesktopFlags 
Contains flags for desktop opening. See TJwSecurityDesktopFlags for more information  
const doInherit: boolean 
TBD  
const aSecurityDescriptor: TJwSecurityDescriptor 
Contains security aspects to be assigned to the new desktop. Set to nil if the security attributes of the application shall be used. 
aDesirecAccess 
Contains flags that defines the type of opening. You can use the following flags concatenated by OR-Operator : READ_CONTROL, WRITE_DAC, WRITE_OWNER, STANDARD_RIGHTS_READ, STANDARD_RIGHTS_WRITE, STANDARD_RIGHTS_EXECUTE, STANDARD_RIGHTS_ALL, SPECIFIC_RIGHTS_ALL, ACCESS_SYSTEM_SECURITY, MAXIMUM_ALLOWED, GENERIC_READ, GENERIC_WRITE, GENERIC_EXECUTE, GENERIC_ALL, // Desktop-specific access flags DESKTOP_READOBJECTS, DESKTOP_CREATEWINDOW, DESKTOP_CREATEMENU, DESKTOP_HOOKCONTROL, DESKTOP_JOURNALRECORD DESKTOP_JOURNALPLAYBACK, DESKTOP_ENUMERATE, DESKTOP_WRITEOBJECTS You can look up the meanings in MSDN.  

public declarations Constructor Create creates a new instance of TJwSecurityDesktop. This constructor can create and open a desktop object. 

 

Exceptions 
Description 
is raised if the desktop could not be created. 
is raised if the desktop could not be opened. 
is raised if the desktop is already opened by this instance. 
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!