Поделиться через


IWMProximityDetection interface (wmsdkidl.h)

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

[IWMProximityDetection is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Microsoft PlayReady. ]

The IWMProximityDetection interface validates a playback device for receiving media data. The validation process confirms that the device is "near" enough on the network to receive media through the Windows Media DRM 10 for Network Devices protocol.

An IWMProximityDetection interface exists for every device registration object. You can obtain a pointer to this interface by calling the QueryInterface method of the IWMDeviceRegistration interface.

Inheritance

The IWMProximityDetection interface inherits from the IUnknown interface. IWMProximityDetection also has these types of members:

Methods

The IWMProximityDetection interface has these methods.

 
IWMProximityDetection::StartDetection

The StartDetection method begins the proximity detection process. After calling this method, do not release the IWMProximityDetection until you receive the WMT_PROXIMITY_COMPLETED message.

Remarks

The validation state is stored in the device registration database. You can check the validation state for a device by calling IWMRegisteredDevice::IsValid.

Validation expires after 48 hours.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wmsdkidl.h

See also

Interfaces