public static extern int TdReqQryInvestor(IntPtr pApi, ThostFtdcQryInvestorField pQryInvestor, int nRequestID);
/// <summary> ///请求查询投资者 /// </summary> public int ReqQryInvestor(ThostFtdcQryInvestorField pQryInvestor, int nRequestID) { return(Interop.TdReqQryInvestor(Handle, pQryInvestor, nRequestID)); }
/// <summary> /// 请求查询投资者 /// </summary> void ReqQryInvestor() { ThostFtdcQryInvestorField req = new ThostFtdcQryInvestorField(); req.BrokerID = BROKER_ID; req.InvestorID = INVESTOR_ID; int iResult = api.ReqQryInvestor(req, ++iRequestID); Console.WriteLine("--->>> 请求查询投资者: " + ((iResult == 0) ? "成功" : "失败")); }