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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -