C auto start program on windows can't use files -


i create program auto start windows, using registry:

current_user\microsoft\windows\currentversion\run 

when windows starts, program starts too, problem on auto start can't manipulate files, when open program can everything.

using getlasterror can see error code 5: access denied, strerror return "access denied" , using formatstring message like: "error description 5: access denied.

can explain why hapening?

the program starting system32, create files in exe dir, better use getmodulefilename.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -