Location: Symbol Reference > Classes > TJwSecurityDescriptor Class > TJwSecurityDescriptor Methods > TJwSecurityDescriptor.Create_SAEx Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDescriptor.Create_SAEx Method
Pascal
function Create_SAEx(bInheritHandle: boolean = False; bSDRelative: boolean = False): TSecurityAttributes;
Parameters 
Description 
bInheritHandle: boolean = False 
A Boolean value that specifies whether the returned handle is inherited when a new process is created. If this member is TRUE, the new process inherits the handle.  
bSDRelative: boolean = False 
A Boolean value that defines whether the internal security descriptor is relative (true) or absolute (false).  

Returns security attribute structure.

Create_SAEx creates a security attributes structure on the stack. However the internal security descriptor will be created on heap. 

The SA structure must be freed by Free_SAEx. The internal SD structure is automatically freed. 

You can set Control or RMControl to modify the resulting control value of the security descriptor block. The values SE_DACL_PRESENT and SE_SACL_PRESENT are always automatically set. SE_RELATIVE is set, if parameter bRelative is true. SE_SACL_PRESENT will be set if property SACL/AuditACL is not nil. 

 

Exceptions 
Description 
see Create_SD for more information about raised exception. 
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!