UserMgrObjectSetUsedRights (FUN)

FUNCTION UserMgrObjectSetUsedRights : RTS_IEC_RESULT

Sets the used access rights for the object specified by handle.
The rights are additionally stored in an internal list. In case USERDB_RIGHT_NONE is passed for ulUsedRights the previously stored rights are retrieved for this object.
Limited to the application subtree.
InOut:

Scope

Name

Type

Comment

Return

UserMgrObjectSetUsedRights

RTS_IEC_RESULT

Error code
  • ERR_OK: Rights are successfully set

  • ERR_PARAMETER: Invalid object handle

  • ERR_NO_OBJECT: Object was not found for rights retrieval

  • ERR_NO_ACCESS_RIGHTS: No access rights in IEC context

Input

hObject

RTS_IEC_HANDLE

Handle to the object

ulUsedRights

DWORD

Used access rights or USERDB_RIGHT_NONE for retrieval