Beispiel #1
0
 /// <summary>
 ///用户口令更新请求
 /// </summary>
 public int ReqUserPasswordUpdate(ThostFtdcUserPasswordUpdateField pUserPasswordUpdate, int nRequestID)
 {
     return(Interop.TdReqUserPasswordUpdate(Handle, pUserPasswordUpdate, nRequestID));
 }
Beispiel #2
0
 public static extern int TdReqUserPasswordUpdate(IntPtr pApi, ThostFtdcUserPasswordUpdateField pUserPasswordUpdate, int nRequestID);
Beispiel #3
0
        /// <summary>
        /// 用户口令变更请求答复
        /// </summary>
        /// <param name="pUserPasswordUpdate"></param>
        /// <param name="pRspInfo"></param>
        /// <param name="nRequestID"></param>
        /// <param name="bIsLast"></param>
        void OnRspUserPasswordUpdate(ThostFtdcUserPasswordUpdateField pUserPasswordUpdate, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
        {
            DebugPrintFunc(new StackTrace());
            if (bIsLast && !IsErrorRspInfo(pRspInfo))
            {
                // 保存会话参数
                BROKER_ID = pUserPasswordUpdate.BrokerID;
                PASSWORD = pUserPasswordUpdate.NewPassword;
                INVESTOR_ID = pUserPasswordUpdate.UserID;

                //资金账户口令更新
                ReqTradingAccountPasswordUpdate();
            }
        }
Beispiel #4
0
 ///用户口令更新请求响应
 public void OnRspUserPasswordUpdate(ThostFtdcUserPasswordUpdateField pUserPasswordUpdate, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (!IsErrorRspInfo(pRspInfo))
     {
     }
 }
Beispiel #5
0
 /// <summary>
 /// 用户口令变更请求
 /// </summary>
 void ReqUserPasswordUpdate()
 {
     ThostFtdcUserPasswordUpdateField req = new ThostFtdcUserPasswordUpdateField();
     req.BrokerID = BROKER_ID;
     req.OldPassword = PASSWORD;
     req.NewPassword = PASSWORD;
     req.UserID = INVESTOR_ID;
     int iResult = api.ReqUserPasswordUpdate(req, ++iRequestID);
     Console.WriteLine("--->>> 用户口令变更确认: " + ((iResult == 0) ? "成功" : "失败"));
 }