网站首页  词典首页

请输入您要查询的函数:

 

术语 shisfileavailableoffline
释义 SHIsFileAvailableOffline
语法:
HRESULT SHIsFileAvailableOffline( LPCWSTR pszPath,
LPDWORD pdwStatus
);
SHIsFileAvailableOffline功能
确定是否有文件或文件夹是脱机使用。此功能还确定文件是否会从网络开始从本地脱机文件缓存,或从两个位置。
参数
pszPath
[in]一个指向一个字符串值,指定的完整路径网络文件或目录。这条道路并不需要在通用命名约定(UNC)的形式。如果pszPath不是一个网络路径,则函数返回E_INVALIDARG。
pdwStatus
[out] 一个类型为DWORD接收指针变量的一个或多个以下标志,如果函数成功。
OFFLINE_STATUS_LOCAL
如果该文件是开放的,它是在缓存中打开。
OFFLINE_STATUS_REMOTE
如果该文件是开放的,它是在服务器上打开。
OFFLINE_STATUS_INCOMPLETE
本地副本目前不完整的。该文件无法打开,在脱机模式下,直到它被同步。
返回值
返回下列值之一。
S_OKThe文件或目录缓存。这是脱机使用,除非OFFLINE_STATUS_INCOMPLETE设置。
E_INVALIDARGThe路径是无效的或不是网络路径。该文件或目录不缓存。
E_FAILThe文件或目录不被缓存。
备注
如果pszPath是一个目录,SHIsFileAvailableOffline不会返回OFFLINE_STATUS_INCOMPLETE标志。
如果SHIsFileAvailableOffline同时返回OFFLINE_STATUS_LOCAL和OFFLINE_STATUS_REMOTE,文件或目录打开两地。这是常见的当服务器处于联机状态。
功能信息
最低DLL版本 shell32.dll 5.0或更新版本
自定义ImplementationNo
Headershellapi.h
import libraryshell32.lib
2000年最低经营systemsWindows
==英文原文==SHIsFileAvailableOffline Function
Determines whether a file or folder is available for offline use. This function also determines whether the file would be opened from the network, from the local Offline Files cache, or from both locations.
Syntax
HRESULT SHIsFileAvailableOffline( LPCWSTR pszPath,
LPDWORD pdwStatus
);
Parameters
pszPath
[in] A pointer to a string value that specifies the full path to a network file or directory. This path does not need to be in Universal Naming Convention (UNC) form. If pszPath is not a network path, the function returns E_INVALIDARG.
pdwStatus
[out] A pointer to a variable of type DWORD that receives one or more of the following flags if the function succeeds.
OFFLINE_STATUS_LOCAL
If the file is open, it is open in the cache.
OFFLINE_STATUS_REMOTE
If the file is open, it is open on the server.
OFFLINE_STATUS_INCOMPLETE
The local copy is currently incomplete. The file cannot be opened in offline mode until it has been synchronized.
Return Value
Returns one of the following values.
S_OKThe file or directory is cached. It is available offline unless OFFLINE_STATUS_INCOMPLETE is set.
E_INVALIDARGThe path is invalid or not a network path. The file or directory is not cached.
E_FAILThe file or directory is not cached.
Remarks
If pszPath is a directory, SHIsFileAvailableOffline will not return the OFFLINE_STATUS_INCOMPLETE flag.
If SHIsFileAvailableOffline returns both OFFLINE_STATUS_LOCAL and OFFLINE_STATUS_REMOTE, the file or directory is open in both places. This is common when the server is online.
Function Information
Minimum DLL Versionshell32.dll version 5.0 or later
Custom ImplementationNo
Headershellapi.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000
==原始网址==http://msdn.microsoft.com/en-us/library/bb762212(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:27:11