CascLib API Reference
CascGetStorageInfo
bool WINAPI CascGetStorageInfo( HANDLE hStorage, // Handle to an open storage CASC_STORAGE_INFO_CLASS InfoClass, // Pointer to a structure with extra arguments void * pvStorageInfo, // Specifies whether to open a local or an online storage size_t cbStorageInfo, // Length, in bytes, of the buffer pointed by pvStorageInfo size_t * pcbLengthNeeded // Pointer to a required length, in bytes );
Function CascGetStorageInfo retrieves various parameters of an open storage. The type of information depends on the value of the InfoClass parameter.
On success, the function returns true.
On failure, the function returns false and GetLastError() returns the error code.
The following table shows the possible type of information that are obtainable by CascGetFileInfo:
Value of InfoClass | pvStorageInfo points to | Returned information |
---|---|---|
CascStorageLocalFileCount | DWORD | Number of local files in the storage. Note that a file can be referenced by different names, so the total number of files in the storage may be higher than physical number of files. |
CascStorageTotalFileCount | DWORD | Total file count in the storage. This includes the files that are offline (not downloaded). |
CascStorageFeatures | DWORD | Bit mask containing various CASC storage features. The mask can be a combination of the following values:
|
CascStorageProduct | CASC_STORAGE_PRODUCT | Information abot the product - product printable name, build number, and CASC_PRODUCT enum. |
CascStorageTags | CASC_STORAGE_TAGS | Information about tags included in the storage. |
CascStoragePathProduct | TCHAR Buffer | Open parameters of the storage, aka LocalPath:ProductCode. |
Copyright (c) Ladislav Zezula 2019