EssGLoginSetPass

グリッドをEssbaseデータベースに接続し、ユーザーのパスワードを変更します。

構文


      
      
パラメータデータ型説明

hGrid;

ESSG_HGRID_T

EssGNewGrid()から戻されるハンドル

Server;

ESSG_SERVER_T

有効なサーバーの名前

Username;

ESSG_USERNAME_T

サーバーで有効なユーザー名

Password;

ESSG_PASSWORD_T

ユーザーのパスワード

NewPassword;

ESSG_PASSWORD_T

ユーザーの新パスワード

戻り値

正常終了の場合は、ESSG_STS_NOERRが戻されます。

         #include 
#include 

{
  ESSG_FUNC_M     sts = ESS_STS_NOERR;
  ESSG_INIT_T     InitStruct;
  ESSG_HANDLE_T   Handle;
  ESSG_SERVER_T   Server;
  ESSG_USERNAME_T UserName;
  ESSG_PASSWORD_T Password;
  ESSG_PASSWORD_T NewPassword;
  ESSG_HGRID_T    hGrid;

  InitStruct.ulVersion      = ESSG_VERSION;
  InitStruct.ulMaxRows      = 1000;
  InitStruct.ulMaxColumns   = 200;
  InitStruct.pfnMessageFunc = ESS_NULL;
  InitStruct.pUserdata      = ESS_NULL;

  /* initializes EGAPI */
  sts = EssGInit(&InitStruct, Handle);

  /* initializes a specific grid */
  if(!sts)
    sts = EssGNewGrid(Handle, &hGrid);

    strcpy(Server, "Rainbow");
    strcpy(UserName, "Admin");
    strcpy(Password, "Password");
    strcpy(Password, "NewPassword");

  /* connects the grid to a database on the server */ 
  if(!sts)
    sts = EssGLoginSetPass(hGrid, Server, UserName, Password, NewPassword);
}
      

関連トピック