IBM OS/2 LAN Server REXX Utility DLL


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


NETACCESSDEL


The function deletes one access permission record for a particular 
existing access control profile.   
Syntax 


MyRc = NetDelete(NETACCESSDEL, SrvName, resourceName, ugName)

  
Parameters 
The parameters specified are: 
SrvName           The server computer name 
resourceName      The name of the resource. This variable must have a 
                  value. See below for accepted values: 

                  Resource Type                 Basepath Format
                  -------------                 ---------------
                  Drive                         drive:
                  Path                          \path
                  Directory                     drive:pathname
                  File                          drive:pathname
                  UNC                           \\server\sharename\path
                  Pipe                          \pipe\pipename
                  Spooler Queue                 \print\queuename
                  Serial Device Queue           \comm\chardevqueue
                  
                  
ugName            The user or group name 
  
Note 
The server computer name can be specified as '' for a local server.   
Example   


/* Delete access control profile entry */
call RxFuncAdd 'LoadLsRxutFuncs', 'LSRXUT', 'LoadLsRxutFuncs'
call LoadLsRxutFuncs

NETACCESSDEL = 240
SrvName      = '\\ILIDC'
resourceName = 'D:\APPS\TEMP'
ugName       = 'CSUSERS'

myRc = NetDelete(NETACCESSDEL, SrvName, resourceName, ugName)

if myRc <> '0' then do
 say 'Got error from NetDelete() ' myRc
 call DropLsRxutFuncs
 exit 9
end
else do
 say 'Access Control Profile Entry deleted successfully'
 say
end

call DropLsRxutFuncs
call RxFuncDrop 'LoadLsRxutFuncs'

exit 0

  
Example Output   


Access Control Profile Entry deleted successfully



Inf-HTML End Run - Successful