ITextStoreACP2::AdviseSink method
Installs a new advise sink from the ITextStoreACPSink interface or modifies an existing advise sink. The sink interface is specified by the punk parameter.
Syntax
HRESULT AdviseSink( [in] REFIID riid, [in] IUnknown *punk, [in] DWORD dwMask );
Parameters
- riid [in]
-
Specifies the sink interface.
- punk [in]
-
Pointer to the sink interface. Cannot be NULL.
- dwMask [in]
-
Specifies the events that notify the advise sink. For more information about possible parameter values, see TS_AS_* Constants.
Return value
This method can return one of these values.
| Value | Description |
|---|---|
|
The method was successful. |
|
A sink interface pointer could not be obtained. |
|
The specified sink interface is unsupported. |
|
The specified sink object could not be obtained. |
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also