Metro style apps do not have permissions to most of the file system, only to files within their install location and application data store. You should be able to use fopen in those locations, but not elsewhere.
You can get limited access to the various libraries (Documents, Music, Photos, etc.) by declaring the appropriate Capabilities, but that access needs to come through the StorageFolder and StorageFile classes. Since your process doesn't have permission to
read these files a broker process will open them for you and provide their contents as a stream.
The user can grant your app access to other files on the system by choosing them in a file picker. This access would also be brokered and provided via the StorageFolder and StorageFile classes.
Contrassegnato come rispostaBhashTechgiovedì 19 aprile 2012 11:36
mercoledì 18 aprile 2012 21:10
Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di Msdn. Se si sceglie di partecipare, quando si lascia il sito Web di Msdn verrà visualizzato il sondaggio in linea.