IFileOperation::GetAnyOperationsAborted method (shobjidl_core.h)
Gets a value that states whether any file operations initiated by a call to IFileOperation::PerformOperations were stopped before they were complete. The operations could be stopped either by user action or silently by the system.
Syntax
HRESULT GetAnyOperationsAborted(
[out] BOOL *pfAnyOperationsAborted
);
Parameters
[out] pfAnyOperationsAborted
Type: BOOL*
When this method returns, points to TRUE if any file operations were aborted before they were complete; otherwise, FALSE.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Call this method after IFileOperation::PerformOperations returns.
You should call IFileOperation::GetAnyOperationsAborted regardless of whether IFileOperation::PerformOperations returned a success or failure code. A success code can be returned even if the operation was stopped by the user or the system.
This method provides the same functionality as the fAnyOperationsAborted member of the SHFILEOPSTRUCT structure used by the legacy function SHFileOperation.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |