| BOOL WINAPI WebGetFile( |
| |
HSTORAGE hStorage, |
|
| |
LPCTSTR lpszLocalFile, |
|
| |
LPCTSTR lpszObjectLabel |
|
| ); |
The WebGetFile function downloads the contents of a storage object and copies
it to a local file.
Parameters
- hStorage
- A handle to the storage container.
- lpszLocalFile
- A null-terminated string that specifies the name of
the local file that will be created or overwritten with the contents
of the storage object. If a path is not specified, the file will be
created in the current working directory.
- lpszObjectLabel
- A null-terminated string that specifies the label
of the object that should be retrieved from the server.
Return Value
If the function succeeds, the return value is non-zero. If the
function fails, the return value is zero. To get extended error information,
call WebGetLastError.
Remarks
The WebGetFile function downloads the contents of
the storage object and stores it in a local file. For information
about the stored object that has been downloaded, use the
WebGetFileEx function.
If you are downloading a large object and want your application to
receive progress updates during the data transfer, use the
WebRegisterEvent function and provide a pointer to
a callback function that will receive event notifications.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: cswebv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|