Gets a user information structure, which contains security information for the user.
Syntax
EsbGetUser (hCtx, userName, pUserInfo) ByVal hCtx As Long ByVal userName As String pUserInfo As ESB_PUSERINFO_T
Parameter | Description |
---|---|
hCtx | VB API context handle. |
userName | User name. |
pUserInfo | Buffer to receive a user info structure. |
Return Value
If successful, returns the user information structure in pUserInfo.
Access
This function requires the caller to have Create/Delete User privilege (ESB_PRIV_USERCREATE) for the logged in server, unless they are getting their own user information.
Example
Declare Function EsbGetUser Lib "ESBAPIN" (ByVal hCtx As Long, ByVal User As String, UserInfo As ESB_USERINFO_T) As Long Sub ESB_GetUser () Dim sts As long Dim User As String Dim UserInfo As ESB_USERINFO_T User = "Joseph" '************************ ' Get User Info structure '************************ sts = EsbGetUser (hCtx, User, UserInfo) End Sub
See Also