Around and About .NET World

Il blog di Marco Minerva
posts - 1671, comments - 2232, trackbacks - 2131

My Links

News

Contattami su Live Messenger:


MCTS: Windows, Web, Distributed Applications & SQL Server

MCPD: Enterprise Applications

Tag Cloud

Archives

Post Categories

Links

File Virtualization su Windows Vista

Uno degli errori più comuni nello sviluppo di software per Windows è quello di memorizzare file a run-time (ad esempio le opzioni selezionate dall'utente) nella cartella di installazione del programma, ovvero C:\Programmi (o C:\Program Files). Finché si è amministratori della macchina non ci sono problemi, ma se il software viene eseguito da un utente che ha privilegi limitati, la scrittura di file nella cartella dei programmi non è consentita, quindi l'applicazione non funziona correttamente.

Tra le tante soluzioni di Windows Vista per la sicurezza (alcune sono riassunte in questo articolo), ce n'è una chiamata File Virtualization, che ha proprio lo scopo di eliminare il problema appena citato:

File virtualization addresses the situation where an application relies on the ability to store a file (like a configuration file) in a system-wide location. This works well when the user is a member of the administrators group, but fails when the same program is launched from a limited user account (or an account protected by UAC). When the application writes to a system location (like \Program Files\...), Windows redirects it to a user-specific path under the \Virtual Store\... directory. Later, when the application reads back this file, the system will provide the one in the Virtual Store. As far as the application is concerned, it was able to successfully read and write directly to Program Files.

Example:

Suppose User A is running under a limited user account and uses Notepad to save a text file to \Program Files\foo.txt. Virtualization would allow this file to be saved successfully. What occurs is the write is redirected to \Virtual Store\(The User's account security identifier (-SID)\Program Files\foo.txt. Looking in the \Program Files\ directory with Windows Explorer, User A will see the file foo.txt, since Windows Explorer properly shows the user's virtualized files. However, after logging in, User B will NOT see the file foo.txt in the \Program Files\ directory. If User B then writes the \Program files\foo.txt file, that write will also virtualize to User B's virtual store. The files User A writes remain independent of the file User B writes.

Una tecnia analoga esiste anche per la virtualizzazione delle chiavi del Registro di configurazione (Registry Virtualization).

Questa soluzione dovrebbe risolvere i problemi di compatibilità di molte applicazioni con la UAC, tuttavia è bene ricordare che Microsoft rimuoverà la virtualizzazione dalle prossime versioni di Windows: in questo modo, vuole spingere gli sviluppatori a realizzare al più presto applicazioni UAC-Compliant.

Print | posted on sabato 30 dicembre 2006 11.42 | Filed Under [ Windows Related ]

Feedback

Gravatar

# Attivare/disattivare la virtualizzazione di Windows Vista

15/01/2007 12.03 | Around and About .NET World
Gravatar

# Una piccola pecca per Reflector

26/02/2007 20.13 | Around and About .NET World
Gravatar

# t576a

t104t
24/08/2008 8.51 | ma372zda
Gravatar

# Jessica simpson dolly parton.

Jessica simpson. Jessica simpson gallery. Jessica simpson naked.
19/09/2008 1.33 | Jessica simpson.
Gravatar

# Amateur.

Amateur.
31/10/2008 1.49 | Amateur.
Gravatar

# Foot fetish.

Rubber fetish. Fetish fisting xxx. Fetish wear. Medical fetish stories. Spandex fetish.
03/11/2008 14.14 | Fetish pic post.
Gravatar

# Amateur teen.

Amateur. Amateur movies.
06/12/2008 14.21 | Amateur nude pictures.
Gravatar

# How to use MKDir function? | hilpers

How to use MKDir function? | hilpers
18/01/2009 14.04 | Pingback/TrackBack
Gravatar

# Vista Doppia cartella programmi | hilpers

Vista Doppia cartella programmi | hilpers
22/01/2009 17.32 | Pingback/TrackBack
Gravatar

# Hydrocodone.

Hydrocodone. Snorting hydrocodone. Ic hydrocodone apap 5 500.
09/08/2009 14.57 | Norco hydrocodone.
Gravatar

# Levothyroxine excessive hunger.

Compare levothyroxine thyrolar. Side effects levothyroxine. Levothyroxine. Menstrual irregularity with levothyroxine.
11/08/2009 11.19 | Levothyroxine.
Gravatar

# Ephedra.

Ephedra is it legal. Ephedra products. Ephedra smacker. Ephedra.
23/11/2009 6.29 | Ephedra.
Gravatar

# Adderall.

Snort adderall xr. Mexican pharmacies adderall. Adderall. Lower back pain and adderall. Who makes adderall.
22/03/2010 23.54 | Adderall xr side effects.
Gravatar

# Oxycontin withdrawal.

Oxycontin withdrawl. Oxycontin. How is oxycontin made. Buy oxycontin. Buying oxycontin from mexico.
24/03/2010 0.58 | Oxycontin.
Gravatar

# Hard to annunciate fioricet codeine.

Fioricet without a prescription. Fioricet. Extract codeine from fioricet. No prescription soma fioricet. Fioricet plain pill.
24/03/2010 3.27 | Fioricet.
Gravatar

# Buy adderall without a prescription.

Adderall xr.
27/03/2010 6.57 | Adderall side effects.
Gravatar

# Hydrocodone.

Hydrocodone apap. Hydrocodone.
28/03/2010 0.24 | Effects of hydrocodone.
Gravatar

# test

zY56qt1 | <a href="http://test.com" >test</a>
22/04/2010 11.10 | http://test.com
Comments have been closed on this topic.

Powered by: