Location: Symbol Reference > Classes > TJwSecurityDescriptor Class > TJwSecurityDescriptor Methods > Create_SD Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
Create_SD Method

This is the overview for the Create_SD method overload.

 
Name 
Description 
 
Create_SD creates a self relative (continuous block of memory) or an absolute (using pointers to owner, DACL, ...) security descriptor (SD). The created SD must be freed using Free_SD .
The function calls a lot of winapi function that can fail. So check for exception. See the exceptions. In a case of exception the return value is undefined. However already allocated memory is freed. A case for a failure can be an incorrect owner SID, DACLs or out of memory.
Do not edit the memory block manually or even free sub structures (as owner, dacl...) Create_SD uses GetMem for... more 
 
Create_SD creates a self relative (continuous block of memory) or an absolute (using pointers to owner, DACL, ...) security descriptor (SD).
The function calls a lot of winapi function that can fail. So check for exception. See the exceptions. In a case of exception the return value is undefined. However already allocated memory is freed. A case for a failure can be an incorrect owner SID, DACLs or out of memory.
Do not edit the memory block manually or even free sub structures (as owner, dacl...) Create_SD uses GetMem for sd memory allocation.
You can set Control or RMControl... more 
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!