UserMgrGroupGetHandle (FUN)

FUNCTION UserMgrGroupGetHandle : RTS_IEC_HANDLE

Retrieve the handle from the given group name

InOut:

Scope

Name

Type

Comment

Return

UserMgrGroupGetHandle

RTS_IEC_HANDLE

Correspondig group handle or RTS_INVALID_HANDLE if failed

Input

hUser

RTS_IEC_HANDLE

Handle to authorized user

Inout Const

pszGroupName

STRING

Name of the group

Output

Result

RTS_IEC_RESULT

Error code
  • ERR_OK: Group handle could be retrieved

  • ERR_NO_OBJECT: Group was not found

  • ERR_NO_ACCESS_RIGHTS: User not authorized