Location: Symbol Reference > Classes > TJwSecurityDescriptor Class > TJwSecurityDescriptor Methods > TJwSecurityDescriptor.SaveToStream Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityDescriptor.SaveToStream Method
Pascal
procedure SaveToStream(const Stream: TStream); virtual;

SaveToStream writes a relative security descriptor into a stream. The method uses a magic header to check for position errors in a stream. 

  • Bytes | Value
  • 1..5 (5) | SD_MAGIC_HEADER (byte array)
  • 6..9 (4) | SD size (Cardinal)
  • 10..17 (8) | hash value (Int64)
  • 18..18 (1) | hash value in use (byte) true if 255 otherwise false. == SD_HEADER_SIZE
  • 19..sd (size) | security descriptor data
 

Do not depend on this layout since it can be changed depending on the magic header.

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!