title | description | ms.assetid | ms.topic | ms.date |
---|---|---|---|---|
IAgent Register |
IAgent Register |
3592e8ba-979e-4914-8197-17e645806f97 |
article |
05/31/2018 |
[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]
HRESULT Register(
IUnknown * punkNotifySink // IUnknown address for client notification sink
long * pdwSinkID // address of the notification sink ID
);
Registers a notification sink for the client application.
- Returns S_OK to indicate the operation was successful.
-
IUnknown
-
Address of IUnknown for your notification sink interface.
-
pdwSinkID
-
Address of notification sink ID (used to unregister the notification sink).
You need to register your notification sink (also known as a notify sink or event sink) to receive events from the Microsoft Agent server.