Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetobjtyp()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETOBJTYP()
 Determines the object type of an object ID
------------------------------------------------------------------------------
 Syntax

     NNETOBJTYP(<NId>, [<cServer>|<nConId>]) --> nObjType

     Netware: 2.2 and 3.11

 Arguments

     <NId>  Designates a bindery object ID.  For efficiency reasons, the
     ID must be passed in the high-low format (see the Introduction to this
     chapter).

     <cServer>  Designates the name of the file server for which the
     bindery is accessed.  Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NETOBJTYP() returns the type of the bindery object, specified by <NId>
     in the high-low format.  If an error occurs, the function returns 0.

 Description

     NOVELL NET OBJECT TYPE
     Within a file server, each bindery object is given a unique object ID
     with a length of four bytes.  With NNETOBJTYP(), you can determine the
     type of the related bindery object.  NNETOBJTYP() can be used in
     conjunction with functions that return an object ID in the high-low
     format (for example, NNETRDSET()).

 Examples

     Read the property SECURITY_EQUALS of user MIKE, and return the object
     names and types of the members (the SECURITY_EQUALS property contains a
     list of objects to which an object is security-equivalent):

     #include "ctnnet.ch"

     aIn=NNETRDSET('MIKE',OBJ_USER,'SECURITY_EQUALS')
     FOR i=1 TO LEN(aIn)
     ?  NNETOBJNAM(aIn[i])
     ?? IF(NNETOBJTYP(aIn[i])=OBJ_USER,'User','Group')
     NEXT i

See Also: NNETOBJNAM() NNETRDSET()

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