Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Protected Mode
Reference
Functions
 IESaveFile Function
IESaveFile Function

Saves the file to the location selected by the user in a previous call to IEShowSaveFileDialog.

Syntax

HRESULT IESaveFile(      
    HANDLE hState,     LPWSTR lpwstrSourceFile );

Parameters

hState
[in] The handle returned by a previous call to IEShowSaveFileDialog.
lpwstrSourceFile
[in] A string that specifies the full path to the temporary (source) location of the file to be saved.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The IESaveFile function is the second step in a two-step Save operation. The IEShowSaveFileDialog function is used to initialize a Save As dialog box in Windows Internet Explorer. After the user closes the dialog box, Internet Explorer returns information about the user's selection. If this call is successful, a subsequent call to the IESaveFile function must be made to complete the operation.

The handle returned by the IEShowSaveFileDialog function should be used only once. It is not necessary to close the handle; set it to NULL after use. If it is not used, it should be freed by IECancelSaveFile.

Function Information

Stock Implementationieframe.dll
Custom ImplementationNo
Headeriepmapi.h
Import libraryiepmapi.lib
Minimum availabilityInternet Explorer 7
Minimum operating systems Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker