DRM_ND_RegisterWithService (Windows Embedded CE 6.0)
1/5/2010
This function attempts to perform registration with specified DRM enabled server. If successful, the service is added to the service list and a proximity responder for the service is started.
This function is typically called by the initialization code of a Networked Media Device.
Syntax
HRESULT DRM_API DRM_ND_RegisterWithService (
BSTR sOurUDN,
BSTR sServerUDN,
IUPnPService *pService
);
Parameters
sOurUDN
[in] The unique device name (UDN) of the device. This can be a string under a registry value. For example:Key: HKEY_LOCAL_MACHINE\COMM\UPnPDevices\MediaRenderer;
Value name: UPNPUDN
- sServerUDN
[in] The unique device name (UDN) of the server.
*pService
[in] The DRM service provided by server.The application uses the IUPnPDevice found to enumerate the services provided by server. The service with an identifier containing CARDEA_SERVICETYPE is the DRM service.
Return Values
The following table shows a list of possible error values.
Error value | Description |
---|---|
ERROR_SUCCESS |
No errors. |
ERROR_INVALID_PARAMETER |
One or more of the parameters are bad. |
Requirements
Header | wmdrm10nd.h |
Library | wmdrm10nd.lib |
Windows Embedded CE | Windows Embedded CE 6.0 |