Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My application needs to copy folders and files (including create destination folder trees). The end-user determines the sources and destinations so that part is out of my control. Unfortunately, the MSDN information on Vista Privileges is somewhat limited and not very clear. All I can say at present is that the program operations appear to work fine without any privileges under XP.

Q1) Do I need to request "SeBackupPrivilege" and "SeRestorePrivilege"?
At present I am assuming that I do.

Q2) Do I need to have Administrator Rights?
At present I am assuming that I do.
When I request the privileges without Administrator Rights, I get an error code 1300 that indicates limited privileges are granted.

Q2.a) What is this limited level?

Q2.b) Do you consider this adequate? (an open ended question)

Under normal circumstances, the end-user would have access to their own user environment and the Public environment. However, they can elect to go 'Global' and access any part of their system disks file system.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900