Location: Symbol Reference > Classes > TJwServerAccessControl Class > TJwServerAccessControl Methods > TJwServerAccessControl.GetSizeMax Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwServerAccessControl.GetSizeMax Method
Pascal
function GetSizeMax(out cbSize: Largeint): HRESULT; stdcall;
Parameters 
Description 
out cbSize: Largeint 
Receives the number of bytes necessary to store the security descriptor in a stream 

This method can return several, among others, these error codes:

Value 
Description 
S_OK 
Successfully completed. Parameter cbSize contains the size. 
E_NOTIMPL 
The function is disabled due to setting property SupportIPersistStream to false. 
E_UNEXPECTED 
An exception occured that is not an EOleSysError exception. 
others 
There can be other errors coming from a EOleSysError. The value is the same as the value of the member ErrorCode of EOleSysError. 

 

This method behaves differently in a debug or release build. In a debug build an exception is returned to the caller. This can be useful in a debugging session.

GetSizeMax returns the maximum size necessary to store the security descriptor.

This method implements TJwServerAccessControl.GetSizeMax of IPersistStream. 

Currently the function returns the actual size of the security descriptor.

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!