IDccMan::Advise

The IDccMan::Advise method is called by a client application to register an IDccManSink object for receiving connection notifications from the Windows CE connection manager.

HRESULT STDMETHODIMP IDccMan::Advise(
IDccManSink *
pDccSink,
DWORD
pdwContext
);

At a Glance

Header file: Dccole.h
Platforms: H/PC
Windows CE versions: 1.0 and later

Parameters

pDccSink
Pointer to an IDccManSink object that will receive connection notifications.
pdwContext
Pointer to a DWORD that will receive a context value used by the IDccMan object to identify the IDccManSink object that was passed in. The value pointed to by pdwContext should be passed in the call to IDccMan::Unadvise.

Return Values

If this method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Remarks

For more information, see Receiving Connection Notification.

See Also

IDccMan::Unadvise