The Advise method is received by the server in an RPC_REQUEST packet. In response, the server MUST register a client's callback object to receive event notifications.

 HRESULT Advise(
   [in] IUnknown* pUnkSink,
   [out] DWORD* pdwCookie
 );

pUnkSink: A pointer to an IUnknown (as specified in [MS-DCOM] section 3.1.1.5.8) interface for the client object.

pdwCookie: A pointer to a unique DWORD value that uniquely identifies the new element in the ConnectionCollection instance variable.

Return Values: The method MUST return S_OK (0x00000000) on success or an implementation-specific error HRESULT on failure.<94>

When processing this call, the server MUST follow these guidelines: