Function NnetCrtPrp() Foundation

Creates a new property to be associated with a bindery object.

Syntax
NnetCrtPrp( <cObjectName>             , ;
            [<nObjectType>]           , ;  // Default: OBJ_USER
            <cPropertyName>           , ;
            [<nPropertyFlag>]         , ;  // Default: 0
            [<nPropertySecurity>]     , ;  // Default: 49
            [<cFileServer|nConnectID>]  ;  // Default: NnetSname()
          ) --> lSuccess
Return

Returns .T. if a new property could be created and associated with an existing bindary object, otherwise .F.. See NnetError() if the creation fails.

Description

<cObjectName>

An uppercase string of max. 48 characters = the object's name a property is to be created for.

<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.

<nPropertyFlag>

0 -> Static property item (= constant PRP_ITEM, default)

1 -> Dynamic property item

2 -> Static property set (= constant PRP_SET)

3 -> Dynamic property set

<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 for high and low nibble of <nPropertySecurity>
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

The default is 49 decimal (00110001 binary) giving write access to supervisors and read access to any user logged in to the file server.

Feedback

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.