Function NnetPrpSec() Foundation
Changes the security of a property.
NnetPrpSec( <cObjectName> , ;
<nObjectType> , ;
<cPropertyName> , ;
<nPropertySecurity> , ;
[<cFileServer|nConnectID>] ; // Default: NnetSname()
) --> lSuccess
Returns .T. if the property's security is set successfully otherwise .F.
The user must have write access to the object to change its property's security.
<cObjectName>
An uppercase string of max. 48 characters = the name of the bindery object which has the property <cPropertyName>.
<nObjectType>
#define constant from XBTNETW.CH beginning with OBJ_ is used to specify the object's type.
<cPropertyName>
An uppercase string of max. 15 characters = the property's name whose security is to be changed.
<nPropertySecurity>
Eight bit value. The four high order bits define write privileges, the low order bits define read access rights to the property. Each 4 bits in both nibbles have the following meaning:
Bits set | Hex | Description |
---|---|---|
0000 | 0 | Access for any user, even if not logged in |
0001 | 1 | Access for all users logged in to the file server |
0010 | 2 | Access for users logged in using a password |
0011 | 3 | Access for users with supervisory rights |
0100 | 4 | Access for the network operating system only |
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.