[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
NNETOBJID()
Determines the object ID with the object name and the object type
------------------------------------------------------------------------------
Syntax
NNETOBJID(<cObjName>,<nObjType>,<cServer>|<nConId>])
--> nObjId
Netware: 2.2 and 3.11
Arguments
<cObjName> Designates the name of the object for which the ID is
determined.
<nObjType> Designates a numeric value that specifies the object
type. The header file CTNNET.CH contains symbolic constants for the
object types defined by Novell for use in conjunction with the bindery
functions of CA-Clipper Tools.
<cServer> Designates the name of the file server used. Your
workstation must be attached to <cServer>.
<nConId> Designates the connection ID of your workstation on
<cServer>.
Returns
NNETOBJID() returns the object ID of the bindery object that is
specified by <cObjName> and <nObjType> on <cServer>. For efficiency
reasons, the object ID is returned in the high-low format. If an error
occurs, the function returns -1.
Description
NOVELL NET OBJECT ID
Each object in the bindery of a file server is identified by its object
ID. NNETOBJID() allows you to determine the ID with the object name and
the object type. For efficiency reasons, numeric values for <nObjType>
must be passed in the high-low format.
Example
Determine the subdirectories of a print queue:
#include "ctnnet.ch"
nId=NNETOBJID('PRINTQ_0',OBJ_PRINTQUEUE)
? 'Queue directory:'+HEXTOSTR(L2BIN(nId))+'.QDR'
See Also:
NNETUSERID()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson