ユーザーのアプリケーション・アクセス・タイプを検索できます。
構文
ESS_FUNC_M EssGetUserType (
hCtx
,
UserName
,
UserType
)
| パラメータ | データ型 | 説明 |
|---|---|---|
hCtx |
ESS_HCTX_T |
APIコンテキスト・ハンドル。 |
UserName |
ESS_STR_T |
ユーザーの名前。 |
UserType |
ESS_PUSER_TYPE_T |
指定したUserNameに定義されているアプリケーション・アクセス・タイプ。 |
戻り値
APIのステータスを戻します。
例
ESS_FUNC_M
ESS_GetUserType (ESS_HCTX_T hCtx)
{
ESS_FUNC_M sts = ESS_STS_NOERR;
ESS_STR_T UserName="jsmith";
ESS_PUSER_TYPE_T UserType;
sts = EssGetUserType (hCtx, UserName, UserType);
printf("user type for the user %s is %d\n", UserName, *UserType);
return (sts);
}
関連トピック