IFileOperationAdvise Method

Enables a handler to provide status and error information for all operations.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
HResult Advise(
	IFileOperationProgressSink pfops,
	out uint pdwCookie
)

Parameters

pfops  IFileOperationProgressSink
Pointer to an IFileOperationProgressSink object to be used for progress status and error notifications.
pdwCookie  UInt32
When this method returns, this parameter points to a returned token that uniquely identifies this connection.

The calling application uses this token later to delete the connection by passing it to Unadvise(UInt32).

If the call to Advise(IFileOperationProgressSink, UInt32) fails, this value is meaningless.

Return Value

HResult
If this method succeeds, it returns S_OK. Otherwise, it returns an HResult error code.

See Also