home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / tpapi.zip / NWMISC.DOC < prev    next >
Text File  |  1992-02-24  |  7KB  |  138 lines

  1.                                  MISC SERVICES
  2.                                  =============
  3.  
  4.  
  5. AccountRestrictions (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
  6.                      VAR AcctRest : AccountRestrictionsType; 
  7.                      Mode : AcctModes) : WORD;
  8.  
  9.   To allow setting/reading of an object's account restrictions.
  10. --------------------------------------------------------------------------------
  11. AutoLogin (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
  12.            Password : PasswordType; ServerName : ObjectNameType;
  13.            VAR SlotNumber : WORD; VAR LoggedInName : ObjectNameType;
  14.            ForceLogin : BOOLEAN) : WORD;
  15.  
  16.   SlotNumber   : Connection ID of the newly attached server.
  17.   LoggedInName : If already logged in contains the logged in objectname.
  18.   ForceLogin   : If true then will logout of server then relogin regardless
  19.                  if already logged in as another object.
  20.  
  21.   To allow automatic logins from with applications without worrying about 
  22.   updating the netware shells.
  23. --------------------------------------------------------------------------------
  24. DeleteDriveMapping (Drive : CHAR) : WORD;
  25.  
  26.   Allows you to remove a drive mapping from a workstation's environment.
  27. --------------------------------------------------------------------------------
  28. {*} ExpandNetwareDateAndTime (DateTimeInfo : Byte7ArrayType; 
  29.                               TimeType : TimeTypes) : STRING;
  30.  
  31.   NOT FULLY IMPLEMENTED
  32. --------------------------------------------------------------------------------
  33. {*} ExpandNetwareFileDate (DateInfo : LONGINT) : STRING;
  34.  
  35.   NOT FULLY IMPLEMENTED
  36. --------------------------------------------------------------------------------
  37. ExpandNetwareFileTime (TimeInfo : LONGINT) : STRING;
  38.  
  39.   Expands a Netware file time into a usable string format.
  40. --------------------------------------------------------------------------------
  41. ExpandNetwareLoginDateAndTime (DateInfo : Byte6ArrayType) : string;
  42.  
  43.   Expands a Netware login date and time into a usable string format.
  44. --------------------------------------------------------------------------------
  45. FileServerExists (ServerName : ObjectNameType) : BOOLEAN;
  46.  
  47.   Returns true if the file server exists.
  48. --------------------------------------------------------------------------------
  49. GetAllFileServersOnInternet;
  50.  
  51.   BEFORE CALLING PLEASE ENSURE THAT FileServersOnInternet HAS BEEN INITIALISED.
  52.  
  53.   When called will scan the default server's bindery for a list of all file
  54.   servers and place them into FileServersOnInternet.
  55. --------------------------------------------------------------------------------
  56. GetAllObjects (SearchName : ObjectNameType; ObjectType : OT_BinderyType;
  57.                VAR ObjectList : ObjectListingTypePtr; VAR NoOfObjects : WORD);
  58.  
  59.   Will scan the default server's bindery for a list of all objects which match
  60.   both the searchname and object type and place them in ObjectList.  Wildcards
  61.   are allowed.
  62. --------------------------------------------------------------------------------
  63. GetAllShellTables;
  64.  
  65.   When called will update all internal Netware tables and pointers.
  66. --------------------------------------------------------------------------------
  67. GetDefaultFileServerName : ObjectNameType;
  68.  
  69.   Returns the name of the default file server.
  70. --------------------------------------------------------------------------------
  71. GetObjectFullName (ServerName : ObjectNameType; 
  72.                    VAR ObjectFullName : FullNameType;
  73.                    VAR ObjectType : OT_BinderyType) : WORD;
  74.  
  75.   When passed a file server will return the logged in object's full name and
  76.   type.
  77. --------------------------------------------------------------------------------
  78. GetObjectName (ServerName : ObjectNameType; VAR ObjectName : ObjectNameType;
  79.                VAR ObjectType : OT_BinderyType) : WORD;
  80.  
  81.   When passed a file server will return the logged in object's name and type.
  82. --------------------------------------------------------------------------------
  83. GetStationNumber (ServerName : ObjectNameType) : WORD;
  84.  
  85.   When passed a file server will return the connection number for the object.
  86. --------------------------------------------------------------------------------
  87. LogoutAndDetachFromFileServer (ServerName : ObjectNameType;
  88.                                ConnectionID : WORD);
  89.  
  90.   When calling use the following : 
  91.  
  92.     ServerName = 'EXAMPLE' then ConnectionID = 0 else
  93.     ServerName = ''        then ConnectionID = 1 to 8
  94.  
  95.   Will logout and detach a workstation from the specified file server or
  96.   connection ID.  As above only one may be specified at a time.
  97. --------------------------------------------------------------------------------
  98. MiscMapDrive (Drive : CHAR; PathName : PathNameType; 
  99.               ServerName : ObjectNameType;
  100.               var DirectoryHandle : BYTE; DriveType : BYTE) : WORD;
  101.   
  102.   If passing in a complete path then DirectoryHandle should be 0 else
  103.   pass in directoryhandle and relative path.
  104.  
  105.   When passed a drive, valid pathname, servername and whether a permanent or
  106.   temporary drive will map the drive to the path.  Will return the new directory
  107.   handle when finished.
  108. --------------------------------------------------------------------------------
  109. NetWareLoaded (VAR LoggedIn : BOOLEAN) : BOOLEAN;
  110.  
  111.   When called will return true if the shell is loaded and LoggedIn will also be
  112.   true if the workstation is logged in.
  113. --------------------------------------------------------------------------------
  114. SearchAllObjects (SearchName : ObjectNameType;
  115.                   ObjectList : ObjectListingTypePtr;
  116.                   NoOfObjects, First, Last : WORD) : WORD;
  117.  
  118.   Will search ObjectList for SearchName and return position.
  119. --------------------------------------------------------------------------------
  120. SortAllObjects (VAR ObjectList : ObjectListingTypePtr; NoOfObjects : WORD;
  121.                 First, Last : WORD);
  122.  
  123.   Will sort ObjectList into ascending order.
  124. --------------------------------------------------------------------------------
  125. Supervisor : BOOLEAN;
  126.  
  127.   Will return true if object is logged in as SUPERVISOR.
  128. --------------------------------------------------------------------------------
  129. SupervisorEquivalent : BOOLEAN;
  130.  
  131.   Will return true is object is security equivalent to the SUPERVISOR.
  132. --------------------------------------------------------------------------------
  133. UserMemberOfGroup (ObjectName, MemberName : ObjectNameType) : WORD;
  134.  
  135.   When passed ObjectName and MemberName will return Successful if ObjectName is 
  136.   a member of MemberName.
  137. --------------------------------------------------------------------------------
  138.