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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -