IMLNotificationManager::Subscribe (Compact 7)
3/12/2014
This method registers an application with the Media Library notification service.
Syntax
HRESULT Subscribe(
IMLNotify *notificationPort,
DWORD *pdwHandle,
BOOL fNotifySelf
);
Parameters
- notificationPort
[in] Pointer to the IMLNotify interface for the subscriber application.
- pdwHandle
[out] Pointer to the handle for the subscription. Used in IMLNotificationManager::UnSubscribe.
- fNotifySelf
[in] Flag that indicates whether you want to receive notifications that you trigger.
Return Values
Returns the HRESULT values shown in the following table.
Value | Description |
---|---|
S_OK |
The method was successful. |
E_INVALIDARG |
One or more parameters are invalid. |
E_POINTER |
The pdwHandle or notificationPort parameter is invalid. |
E_FAIL |
The method was not successful. |
E_MEMORY |
An out-of-memory error occurred. |
Requirements
Header |
mlibdll.h, |
Library |
mlibdll.lib |