NWChangeObjectSecurity

Changes the security access mask of a bindery object

Local Servers:blocking
Remote Servers:blocking
NetWare Server:3.11, 3.12, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Bindery

Syntax

C

   #include <nwbindry.h> 
   or 
   #include <nwcalls.h> 
    
   NWCCODE N_API NWChangeObjectSecurity ( 
      NWCONN_HANDLE       conn,  
      const nstr8 N_FAR  *objName,  
      nuint16             objType,  
      nuint8              newObjSecurity);
   

Pascal

   uses calwin32 
    
   Function NWChangeObjectSecurity 
     (conn : NWCONN_HANDLE; 
      const objName : pnstr8; 
      objType : nuint16; 
      newObjSecurity : nuint8 
   ) : NWCCODE; stdcall;
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
objName
(IN) Points to a string containing the name of the object whose security is to be changed.
objType
(IN) Specifies the bindery object type.
newObjSecurity
(IN) Specifies the new security access mask for the specified object.

Return Values

These are common return values. See Return Values (Return Values for C).

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x8996

SERVER_OUT_OF_MEMORY

0x89F0

WILD_CARD_NOT_ALLOWED

0x89F1

INVALID_BINDERY_SECURITY

0x89F5

NO_OBJECT_CREATE_PRIVILEGE

0x89FC

NO_SUCH_OBJECT

0x98FE

BINDERY_LOCKED

0x89FF

HARDWARE_FAILURE

Remarks

The objName and objType parameters must uniquely identify the bindery object and cannot contain wildcard characters.

NWChangeObjectSecurity cannot set or clear bindery Read or Write security. Only SUPERVISOR or a bindery object that is security equivalent to SUPERVISOR can change security for a bindery object.

See Section 4.3, Security Rights Mask Values.

See Object Type.

See Section 4.1, Extended Object Type Values.

NCP Calls

See Also

NWGetObjectID