c++ - SeekToBegin fails when running as LocalSystem -
c++ - SeekToBegin fails when running as LocalSystem -
the snippet of code below used download file remote server. works fine when run user or administrator returns error when run localsystem (the requested operation invalid). when comment out line fsourcefile->seektobegin(); programs runs fine localsystem.
any insights why getting error? should worry removing statement: fsourcefile->seektobegin(); alternate approaches?
fsourcefile = (chttpfile*)netsession.openurl(pwnd->m_strsource,1, internet_flag_transfer_binary | internet_flag_reload); // starting time of download(kb/sec calculation) coledatetime dlstart = coledatetime::getcurrenttime(); fsourcefile->seektobegin(); // move cursor top reading*/
c++ windows
Comments
Post a Comment