| 183 | } |
| 184 | |
| 185 | XnStatus UserSelector::GetUserLabel(XnUserID nUserId, char* strLabel, XnUInt32 maxStrLen) |
| 186 | { |
| 187 | UserSelectionState* pState; |
| 188 | XnStatus nRetVal=m_hUsersState.Get(nUserId, pState); |
| 189 | |
| 190 | if(nRetVal!=XN_STATUS_OK) |
| 191 | { |
| 192 | return nRetVal; |
| 193 | } |
| 194 | return TranslateStateToLabel(pState,strLabel,maxStrLen); |
| 195 | } |
| 196 | |
| 197 | XnStatus UserSelector::TranslateStateToLabel(const UserSelectionState* pUserState, char *strLabel, XnUInt32 maxStrLen) |
| 198 | { |