IFileDialogEvents::OnOverwrite method

Called from the save dialog when the user chooses to overwrite a file.

Syntax


HRESULT OnOverwrite(
  [in]   IFileDialog *pfd,
  [in]   IShellItem *psi,
  [out]  FDE_SHAREVIOLATION_RESPONSE *pResponse
);

Parameters

pfd [in]

Type: IFileDialog*

A pointer to the interface that represents the dialog.

psi [in]

Type: IShellItem*

A pointer to the interface that represents the item that will be overwritten.

pResponse [out]

Type: FDE_SHAREVIOLATION_RESPONSE*

A pointer to a value from the FDE_OVERWRITE_RESPONSE enumeration indicating the response to the potential overwrite action.

Return value

Type: HRESULT

The implementer should return E_NOTIMPL if this method is not implemented; S_OK or an appropriate error code otherwise.

Remarks

The FOS_OVERWRITEPROMPT flag must be set through IFileDialog::SetOptions before this method is called.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft