MediaQueryEngine_t::Initialize (Windows CE 5.0)
The Initialize method allocates resources for media library operations. If the Initialize operation is successful, the library transitions from UnIntitialized to Stopped state. In the stopped state, you can register MQE sinks to receive events.
Syntax
bool Initialize (const WCHAR* pDeviceUDN);
Parameters
- pDeviceUDN
The Unique Device Name (UDN) of UPnP renderer device or NULL.
Return Value
This method returns a bool indicating success/failure of the operation. Possible values include the following:
Value | Description |
---|---|
TRUE | MediaQueryEngine is initialized. |
FALSE | There was error initializing. Check GetLastError() value for more information about the cause for failure. |
Remarks
If you wish to enable Windows Media DRM for Network Devices, you need to provide the UDN of the UPnP renderer device.
When the NMD is powered on, the application initiates interaction with the Media Query Engine by calling the Initialize method. When Initialize is called, the UPnP discovery process begins and the UPnP libaries are invoked. Interaction with the Media Query Engine ends when the UnInitialize method is called.
Requirements
OS Versions: Windows CE 5.0 Networked Media Device Feature Pack.
Header: MediaQueryEngine.hpp.
Link Library: MQELib.lib.
See Also
Send Feedback on this topic to the authors