Sets security descriptor to the specified structure. The method returns an integer value that can be interpreted as follows: ...