Location: Symbol Reference > Classes > TJwSecurityDesktops Class > TJwSecurityDesktops Methods > TJwSecurityDesktops.OpenDesktop Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDesktops.OpenDesktop Method
Pascal
function OpenDesktop(const Name: TJwString; const DesktopFlags: TJwSecurityDesktopFlags; const aDesiredAccess: ACCESS_MASK; const doInherit: boolean): TJwSecurityDesktop; virtual;
Parameters 
Description 
const DesktopFlags: TJwSecurityDesktopFlags 
Contains flags for desktop opening. See TJwSecurityDesktopFlags for more information  
const doInherit: boolean 
 
aName 
Contains the name of an existing Desktop. A desktop name is case sensitive.  
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.  

OpenDesktop returns a handle to the desktop

OpenDesktop opens an existing desktop and adds it to the list (if successfull). 

It calls the WinAPI function OpenDesktop. See more information in MSDN.

Exceptions 
Description 
OpenDesktop 
raises EJwsclOpenDesktopException with an error description if the desktop could not be opened OpenDesktop raises EJwsclDesktopException 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!