IFileDataRetriever::GetFileInfo
Gets information about the file.
HRESULT GetFileInfo(
WIN32_FIND_DATAW *pFileInfo);
Parameters
- pFileInfo
[out] Returns information about the file.
Return Value
S_OK
E_POINTER
Remarks
Sync Framework does not fill the whole WIN32_FIND_DATAW structure that is returned in pFileInfo. Because of this, only the following WIN32_FIND_DATAW fields will contain correct values:
DWORD dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastWriteTime;
DWORD nFileSizeHigh;
DWORD nFileSizeLow;
TCHAR cFileName[MAX_PATH];
Sync Framework uses only the following attribute values for the dwFileAttributes value of the WIND32_FIND_DATAW structure:
FILE_ATTRIBUTE_DIRECTORY
FILE_ATTRIBUTE_READONLY
FILE_ATTRIBUTE_HIDDEN
FILE_ATTRIBUTE_SYSTEM
FILE_ATTRIBUTE_TEMPORARY
Other attribute values that are set by a replica will not be sent to the other replica during synchronization.