Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> prpsecget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrpSecGet()
------------------------------------------------------------------------------
 Purpose:
 Get the security level of a property.

 Syntax:
 wSecurityFlag = PrpSecGet( lpszObjectName, wObjectType, lpszPropertyName )

 Parameters:
 lpszObjectName   The object name.
 wObjectType      The object type.
 lpszPropertyName The property name.

 Returns:
 A numeric value (signed short int).

 Description:
 PrpSecGet() returns the bindery read/write security level of the
 property lpszPropertyName associated with the specified object of name
 lpszObjectName and type wObjectType. There are 5 security levels for
 both read and write, which are listed in Chapter 3, Bindery Functions
 and again under the function ObjSecGet().

 For example, if PrpSecGet() returns the value 49, the specified
 property has a security level of Supervisor write, logged read, (48+1).
 Returns NOVERRINT if an error occurs.

 Example:
 // To return the security level of the IDENTIFICATION property
 // for user NICK:
 iSec = PrpSecGet( "NICK", OT_USER, "IDENTIFICATION" )
 if ( NWErrorGet() = 0 )
    ? "User NICK's IDENTIFICATION property has "
    ??"a security level of", iSec
 endif

See Also: ObjPrpTst() ObjSecGet() PrpFlgGet() PrpValTst() ObjPrpLst()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson