Re[4]: Права доступа к файлам под Vista и Win7
От: De-Bugger  
Дата: 08.02.10 12:39
Оценка: 3 (1)
Во, ну что я говорил:

http://msdn.microsoft.com/en-us/library/bb250462(VS.85).aspx


Saving Files to the User Profile
Some extensions need to save files to a particular location so that users or applications can later find the file. The following steps show how to save a file outside of a low integrity location.

Create a temporary version of the file in %userprofile%\AppData\LocalLow. Don't forget to delete the temporary file after the file is sucessfully saved.

Call IEShowSaveFileDialog with the location of the user's profile folder to prompt the user to save the file in a different location. If the user accepts the Save As dialog, IEShowSaveFileDialog returns the destination folder they have chosen.

Call IESaveFile with the location of the temporary file saved in Step 1.

When you do this, Protected Mode's user broker copies the file from the temporary location to the location selected by the user.

To obtain write access to other medium integrity objects, use a custom broker process and then elevate your broker to a medium level process. When run as medium level processes, broker objects can access medium integrity objects. For more information, see Starting Processes from Protected Mode.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.